soap-server.h

Go to the documentation of this file.
00001 /******************************************************************
00002  *  $Id: soap-server.h,v 1.27 2007/01/25 10:28:30 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 
00282 #ifdef __cplusplus
00283 extern "C" {
00284 #endif
00285 
00299 herror_t soap_server_init_args(int argc, char **argv);
00300 
00316 extern herror_t soap_server_register_router(struct SoapRouter * router, const char *context);
00317 
00323 extern const char *soap_server_get_name(void);
00324 
00334 extern herror_t soap_server_run(void);
00335 
00344 extern void soap_server_destroy(void);
00345 
00346 #ifdef __CSOAP_INTERNAL
00347 
00348 typedef struct _SoapRouterNode
00349 {
00350   char *context;
00351   struct SoapRouter *router;
00352   struct _SoapRouterNode *next;
00353 
00354 } SoapRouterNode;
00355 
00356 extern struct SoapRouter *soap_server_find_router(const char *context);
00357 
00358 extern SoapRouterNode * soap_server_get_routers(void);
00359 
00360 extern herror_t soap_server_process(struct SoapCtx *request, struct SoapCtx **response);
00361 
00362 #endif
00363 
00364 #ifdef __cplusplus
00365 }
00366 #endif
00367 
00368 #endif

Generated on Thu Jan 25 23:36:03 2007 for csoap by  doxygen 1.4.6