Asterisk - The Open Source Telephony Project GIT-master-f36a736
Macros | Functions | Variables
res_geolocation.c File Reference
#include "asterisk.h"
#include "asterisk/res_geolocation.h"
#include "res_geolocation/geoloc_private.h"
Include dependency graph for res_geolocation.c:

Go to the source code of this file.

Macros

#define AST_API_MODULE
 

Functions

static void __reg_module (void)
 
static void __unreg_module (void)
 
struct ast_moduleAST_MODULE_SELF_SYM (void)
 
static int load_module (void)
 
static int reload_module (void)
 
static int unload_module (void)
 

Variables

static struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER , .description = "res_geolocation Module for Asterisk" , .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, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .reload = reload_module, .load_pri = AST_MODPRI_CHANNEL_DEPEND - 10, }
 
static const struct ast_module_infoast_module_info = &__mod_info
 

Macro Definition Documentation

◆ AST_API_MODULE

#define AST_API_MODULE

Definition at line 27 of file res_geolocation.c.

Function Documentation

◆ __reg_module()

static void __reg_module ( void  )
static

Definition at line 125 of file res_geolocation.c.

◆ __unreg_module()

static void __unreg_module ( void  )
static

Definition at line 125 of file res_geolocation.c.

◆ AST_MODULE_SELF_SYM()

struct ast_module * AST_MODULE_SELF_SYM ( void  )

Definition at line 125 of file res_geolocation.c.

◆ load_module()

static int load_module ( void  )
static

Definition at line 77 of file res_geolocation.c.

78{
79 int res = 0;
80
82 if (res) {
85 }
86
87 res = geoloc_gml_load();
88 if (res) {
90 }
91
92 res = geoloc_config_load();
93 if (res) {
96 }
97
99 if (res) {
102 }
103
104 res = geoloc_dialplan_load();
105 if (res) {
108 }
109
110 res = geoloc_channel_load();
111 if (res) {
114 }
115
117}
int geoloc_civicaddr_load(void)
int geoloc_config_load(void)
int geoloc_channel_load(void)
int geoloc_dialplan_load(void)
int geoloc_eprofile_load(void)
int geoloc_gml_load(void)
Definition: geoloc_gml.c:357
@ AST_MODULE_LOAD_SUCCESS
Definition: module.h:70
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
Definition: module.h:78
static int unload_module(void)

References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, geoloc_channel_load(), geoloc_civicaddr_load(), geoloc_config_load(), geoloc_dialplan_load(), geoloc_eprofile_load(), geoloc_gml_load(), and unload_module().

◆ reload_module()

static int reload_module ( void  )
static

Definition at line 31 of file res_geolocation.c.

32{
33 int res = 0;
34
36 if (res) {
38 }
39 res = geoloc_gml_reload();
40 if (res) {
42 }
44 if (res) {
46 }
48 if (res) {
50 }
52 if (res) {
54 }
56 if (res) {
58 }
59
61}
int geoloc_civicaddr_reload(void)
int geoloc_config_reload(void)
int geoloc_channel_reload(void)
int geoloc_dialplan_reload(void)
int geoloc_eprofile_reload(void)
int geoloc_gml_reload(void)
Definition: geoloc_gml.c:364

References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, geoloc_channel_reload(), geoloc_civicaddr_reload(), geoloc_config_reload(), geoloc_dialplan_reload(), geoloc_eprofile_reload(), and geoloc_gml_reload().

◆ unload_module()

static int unload_module ( void  )
static

Definition at line 63 of file res_geolocation.c.

64{
65 int res = 0;
66
67 res += geoloc_channel_unload();
70 res += geoloc_config_unload();
71 res += geoloc_gml_unload();
73
74 return (res != 0);
75}
int geoloc_civicaddr_unload(void)
int geoloc_config_unload(void)
int geoloc_channel_unload(void)
int geoloc_dialplan_unload(void)
int geoloc_eprofile_unload(void)
int geoloc_gml_unload(void)
Definition: geoloc_gml.c:350

References geoloc_channel_unload(), geoloc_civicaddr_unload(), geoloc_config_unload(), geoloc_dialplan_unload(), geoloc_eprofile_unload(), and geoloc_gml_unload().

Referenced by load_module().

Variable Documentation

◆ __mod_info

struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER , .description = "res_geolocation Module for Asterisk" , .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, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .reload = reload_module, .load_pri = AST_MODPRI_CHANNEL_DEPEND - 10, }
static

Definition at line 125 of file res_geolocation.c.

◆ ast_module_info

const struct ast_module_info* ast_module_info = &__mod_info
static

Definition at line 125 of file res_geolocation.c.