![]() |
C library for SOAP (Simple Object Access Protocol) |
00001 /****************************************************************** 00002 * $Id: soap-server.h,v 1.29 2007/11/04 06:57:32 m0gg Exp $ 00003 * 00004 * CSOAP Project: A SOAP client/server library in C 00005 * Copyright (C) 2003 Ferhat Ayaz 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the 00019 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 * Boston, MA 02111-1307, USA. 00021 * 00022 * Email: ferhatayaz@yahoo.com 00023 ******************************************************************/ 00024 #ifndef __csoap_server_h 00025 #define __csoap_server_h 00026 00165 typedef struct _SoapRouterNode 00166 { 00167 char *context; 00168 struct SoapRouter *router; 00169 struct _SoapRouterNode *next; 00170 00171 } SoapRouterNode; 00172 00173 #ifdef __cplusplus 00174 extern "C" { 00175 #endif 00176 00188 herror_t soap_server_init_args(int argc, char **argv); 00189 00204 extern herror_t soap_server_register_router(struct SoapRouter * router, const char *context); 00205 00208 extern const char *soap_server_get_name(void); 00209 00217 extern herror_t soap_server_run(void); 00218 00225 extern void soap_server_destroy(void); 00226 00227 #ifdef __CSOAP_INTERNAL 00228 00229 extern struct SoapRouter *soap_server_find_router(const char *context); 00230 00231 extern SoapRouterNode * soap_server_get_routers(void); 00232 00233 extern herror_t soap_server_process(struct SoapCtx *request, struct SoapCtx **response); 00234 00235 #endif 00236 00237 #ifdef __cplusplus 00238 } 00239 #endif 00240 00243 #endif
