#include "asterisk.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/logger.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"

Go to the source code of this file.
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| static int | ifmodule_read (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) |
| static int | load_module (void) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT | AST_MODFLAG_BUILDSUM, .description = "Checks if Asterisk module is loaded in memory" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, } |
| static const struct ast_module_info * | ast_module_info = &__mod_info |
| static struct ast_custom_function | ifmodule_function |
Definition in file func_module.c.
| static void __reg_module | ( | void | ) | [static] |
Definition at line 77 of file func_module.c.
| static void __unreg_module | ( | void | ) | [static] |
Definition at line 77 of file func_module.c.
| static int ifmodule_read | ( | struct ast_channel * | chan, | |
| char * | cmd, | |||
| char * | data, | |||
| char * | buf, | |||
| size_t | len | |||
| ) | [static] |
Definition at line 40 of file func_module.c.
References ast_copy_string(), and ast_module_check().
00042 { 00043 char *ret = "0"; 00044 00045 *buf = '\0'; 00046 00047 if (data) 00048 if (ast_module_check(data)) 00049 ret = "1"; 00050 00051 ast_copy_string(buf, ret, len); 00052 00053 return 0; 00054 }
| static int load_module | ( | void | ) | [static] |
Definition at line 72 of file func_module.c.
References ast_custom_function_register().
00073 { 00074 return ast_custom_function_register(&ifmodule_function); 00075 }
| static int unload_module | ( | void | ) | [static] |
Definition at line 67 of file func_module.c.
References ast_custom_function_unregister().
00068 { 00069 return ast_custom_function_unregister(&ifmodule_function); 00070 }
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT | AST_MODFLAG_BUILDSUM, .description = "Checks if Asterisk module is loaded in memory" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, } [static] |
Definition at line 77 of file func_module.c.
const struct ast_module_info* ast_module_info = &__mod_info [static] |
Definition at line 77 of file func_module.c.
struct ast_custom_function ifmodule_function [static] |
Definition at line 56 of file func_module.c.
1.5.9