Add registerable functional variables (bug #3636, with doc mods)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-03-04 06:36:18 +00:00
parent c564c601bd
commit fba0b595ab
3 changed files with 276 additions and 12 deletions

View File

@@ -53,6 +53,15 @@ typedef int (*ast_state_cb_type)(char *context, char* id, int state, void *data)
typedef int (*ast_devstate_cb_type)(const char *dev, int state, void *data);
/*! Data structure associated with an asterisk custom function */
struct ast_custom_function_obj {
char *name;
char *desc;
char *syntax;
char *(*function)(struct ast_channel *, char *, char *, char *, size_t);
struct ast_custom_function_obj *next;
};
/*! Data structure associated with an asterisk switch */
struct ast_switch {
/*! NULL */
@@ -587,6 +596,10 @@ int ast_goto_if_exists(struct ast_channel *chan, char* context, char *exten, int
int ast_parseable_goto(struct ast_channel *chan, const char *goto_string);
int ast_explicit_goto(struct ast_channel *chan, const char *context, const char *exten, int priority);
int ast_async_goto_if_exists(struct ast_channel *chan, char* context, char *exten, int priority);
struct ast_custom_function_obj* ast_custom_function_find_obj(char *name);
int ast_custom_function_unregister(struct ast_custom_function_obj *acf);
int ast_custom_function_register(struct ast_custom_function_obj *acf);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif