Definition in file scscf_load.h.
#include "../../sr_module.h"
#include "registrar_storage.h"
Go to the source code of this file.
Data Structures | |
| struct | scscf_binds |
| S-CSCF bindings. More... | |
Defines | |
| #define | NO_SCRIPT -1 |
| export not usable from scripts | |
Typedefs | |
| typedef int(*) | load_scscf_f (struct scscf_binds *scscfb) |
| function to load the scscf module bindings | |
Functions | |
| int | load_scscf (struct scscf_binds *scscfb) |
| Load the bindings to the S-CSCF module. | |
| #define NO_SCRIPT -1 |
| typedef int(*) load_scscf_f(struct scscf_binds *scscfb) |
| int load_scscf | ( | struct scscf_binds * | scscfb | ) |
Load the bindings to the S-CSCF module.
| scscfb | - binding to load into returns 1 on success, -1 on error |
Definition at line 68 of file scscf_load.c.
References scscf_binds::get_r_public, scscf_binds::get_r_public_expires, LOAD_ERROR, NO_SCRIPT, and scscf_binds::r_unlock.
Referenced by isc_init().
00069 { 00070 if (!( scscfb->get_r_public=(get_r_public_f) 00071 find_export("get_r_public", NO_SCRIPT, 0)) ) { 00072 LOG(L_ERR, LOAD_ERROR "'get_r_public' not found\n"); 00073 return -1; 00074 } 00075 if (!( scscfb->r_unlock=(r_unlock_f) 00076 find_export("r_unlock", NO_SCRIPT, 0)) ) { 00077 LOG(L_ERR, LOAD_ERROR "'r_unlock' not found\n"); 00078 return -1; 00079 } 00080 if (!( scscfb->get_r_public_expires=(get_r_public_expires_f) 00081 find_export("get_r_public_expires", NO_SCRIPT, 0)) ) { 00082 LOG(L_ERR, LOAD_ERROR "'get_r_public_expires' not found\n"); 00083 return -1; 00084 } 00085 return 1; 00086 }
1.5.2