soap-transport.h

Go to the documentation of this file.
00001 /******************************************************************
00002 *  $Id: soap-transport.h,v 1.2 2006/11/23 15:27:33 m0gg Exp $
00003 *
00004 * CSOAP Project:  A SOAP client/server library in C
00005 * Copyright (C) 2007 Heiko Ronsdorf
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: hero@persua.de
00023 ******************************************************************/
00024 #ifndef __csoap_transport_h
00025 #define __csoap_transport_h
00026 
00027 #ifdef __CSOAP_INTERNAL
00028 typedef herror_t (*msg_exchange)(void *data, struct SoapCtx *request, struct SoapCtx **response);
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 extern herror_t soap_transport_server_init_args(int argc, char **argv);
00035 extern herror_t soap_transport_server_run(void);
00036 extern void soap_transport_server_destroy(void);
00037 
00038 extern const char *soap_transport_get_name(void);
00039 extern herror_t soap_transport_add(const char *protocol, void *data, msg_exchange invoke);
00040 extern herror_t soap_transport_remove(const char *protocol, void *data);
00041 extern herror_t soap_transport_register(const void *data);
00042 
00043 extern herror_t soap_transport_send(struct SoapCtx *request, struct SoapCtx **response);
00044 extern herror_t soap_transport_process(struct SoapCtx *request, struct SoapCtx **response);
00045 
00046 extern herror_t soap_transport_client_init_args(int argc, char **argv);
00047 extern herror_t soap_transport_client_invoke(struct SoapCtx *req, struct SoapCtx **res);
00048 extern void soap_transport_client_destroy(void);
00049 
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053 
00054 #endif
00055 
00056 #endif

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