Definition in file scscf_load.c.
#include "scscf_load.h"
Go to the source code of this file.
Defines | |
| #define | LOAD_ERROR "ERROR: scscf_bind: S-CSCF module function " |
Functions | |
| int | load_scscf (struct scscf_binds *scscfb) |
| Load the bindings to the S-CSCF module. | |
| #define LOAD_ERROR "ERROR: scscf_bind: S-CSCF module function " |
Definition at line 60 of file scscf_load.c.
| 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