#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "asterisk.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/logger.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"
Include dependency graph for func_language.c:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
static char * | builtin_function_language_read (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) |
static void | builtin_function_language_write (struct ast_channel *chan, char *cmd, char *data, const char *value) |
Variables | |
static struct ast_custom_function | language_function |
Definition in file func_language.c.
static char* builtin_function_language_read | ( | struct ast_channel * | chan, | |
char * | cmd, | |||
char * | data, | |||
char * | buf, | |||
size_t | len | |||
) | [static] |
Definition at line 37 of file func_language.c.
References ast_channel::language.
00038 { 00039 ast_copy_string(buf, chan->language, len); 00040 00041 return buf; 00042 }
static void builtin_function_language_write | ( | struct ast_channel * | chan, | |
char * | cmd, | |||
char * | data, | |||
const char * | value | |||
) | [static] |
Definition at line 44 of file func_language.c.
References ast_channel::language.
00045 { 00046 if (value) 00047 ast_copy_string(chan->language, value, sizeof(chan->language)); 00048 }
struct ast_custom_function language_function [static] |
Definition at line 53 of file func_language.c.