scscf_load.c

Go to the documentation of this file.
00001 /*
00002  * $Id: scscf_load.c 78 2007-01-02 14:09:37Z vingarzan $
00003  *  
00004  * Copyright (C) 2004-2006 FhG Fokus
00005  *
00006  * This file is part of Open IMS Core - an open source IMS CSCFs & HSS
00007  * implementation
00008  *
00009  * Open IMS Core is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * For a license to use the Open IMS Core software under conditions
00015  * other than those described here, or to purchase support for this
00016  * software, please contact Fraunhofer FOKUS by e-mail at the following
00017  * addresses:
00018  *     info@open-ims.org
00019  *
00020  * Open IMS Core is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  * 
00025  * It has to be noted that this Open Source IMS Core System is not 
00026  * intended to become or act as a product in a commercial context! Its 
00027  * sole purpose is to provide an IMS core reference implementation for 
00028  * IMS technology testing and IMS application prototyping for research 
00029  * purposes, typically performed in IMS test-beds.
00030  * 
00031  * Users of the Open Source IMS Core System have to be aware that IMS
00032  * technology may be subject of patents and licence terms, as being 
00033  * specified within the various IMS-related IETF, ITU-T, ETSI, and 3GPP
00034  * standards. Thus all Open IMS Core users have to take notice of this 
00035  * fact and have to agree to check out carefully before installing, 
00036  * using and extending the Open Source IMS Core System, if related 
00037  * patents and licences may become applicable to the intended usage 
00038  * context.  
00039  *
00040  * You should have received a copy of the GNU General Public License
00041  * along with this program; if not, write to the Free Software
00042  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00043  * 
00044  */
00045  
00058 #include "scscf_load.h"
00059 
00060 #define LOAD_ERROR "ERROR: scscf_bind: S-CSCF module function "
00061 
00062 
00068 int load_scscf( struct scscf_binds *scscfb)
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 }

Generated on Thu Oct 23 04:14:39 2008 for Open IMS Core CSCFs by  doxygen 1.5.2