You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /******************************************************************
  2. * $Id: soap-service.h,v 1.6 2006/03/06 13:37:38 m0gg Exp $
  3. *
  4. * CSOAP Project: A SOAP client/server library in C
  5. * Copyright (C) 2003 Ferhat Ayaz
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public
  18. * License along with this library; if not, write to the
  19. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20. * Boston, MA 02111-1307, USA.
  21. *
  22. * Email: ferhatayaz@jprogrammer.net
  23. ******************************************************************/
  24. #ifndef cSOAP_SERVICE_H
  25. #define cSOAP_SERVICE_H
  26. #include <libcsoap/soap-env.h>
  27. #include <libcsoap/soap-ctx.h>
  28. typedef herror_t(*SoapServiceFunc) (SoapCtx *, SoapCtx *);
  29. typedef struct _SoapService
  30. {
  31. char *urn;
  32. char *method;
  33. SoapServiceFunc func;
  34. } SoapService;
  35. typedef struct _SoapServiceNode
  36. {
  37. SoapService *service;
  38. struct _SoapServiceNode *next;
  39. } SoapServiceNode;
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. SoapServiceNode *soap_service_node_new(SoapService * service,
  44. SoapServiceNode * next);
  45. SoapService *soap_service_new(const char *urn, const char *method, SoapServiceFunc f);
  46. void soap_service_free(SoapService * service);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif