00001 /* 00002 * $Id$ 00003 * 00004 * Copyright (C) 2009 iptelorg GmbH 00005 * 00006 * Permission to use, copy, modify, and distribute this software for any 00007 * purpose with or without fee is hereby granted, provided that the above 00008 * copyright notice and this permission notice appear in all copies. 00009 * 00010 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 00011 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 00012 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 00013 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00014 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00015 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 00016 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00017 */ 00018 /* 00019 * SER RPC lookup and register functions 00020 */ 00021 /* 00022 * History: 00023 * -------- 00024 * 2009-05-11 initial version (andrei) 00025 */ 00026 00027 #ifndef __rpc_lookup_h 00028 #define __rpc_lookup_h 00029 00030 #include "rpc.h" 00031 /* must be exported for listing the rpcs */ 00032 extern rpc_export_t** rpc_sarray; 00033 extern int rpc_sarray_crt_size; 00034 00035 int init_rpcs(void); 00036 int destroy_rpcs(void); 00037 00038 rpc_export_t* rpc_lookup(const char* name, int len); 00039 int rpc_register(rpc_export_t* rpc); 00040 int rpc_register_array(rpc_export_t* rpc_array); 00041 00042 00043 00044 #endif /*__rpc_lookup_h*/ 00045 00046 /* vi: set ts=4 sw=4 tw=79:ai:cindent: */
1.7.1