initial load of upstream version 1.06.32
[xmlrpc-c] / src / registry.h
1 #ifndef REGISTRY_H_INCLUDED
2 #define REGISTRY_H_INCLUDED
3
4 #include "bool.h"
5 #include "xmlrpc-c/base.h"
6 #include "xmlrpc-c/server.h"
7
8 struct _xmlrpc_registry {
9     bool           _introspection_enabled;
10     xmlrpc_value * _methods;
11     xmlrpc_value * _default_method;
12     xmlrpc_value * _preinvoke_method;
13     xmlrpc_server_shutdown_fn * _shutdown_server_fn;
14         /* Function that can be called to shut down the server that is
15            using this registry.  NULL if none.
16         */
17     void * _shutdown_context;
18         /* Context for _shutdown_server_fn -- understood only by
19            that function, passed to it as argument.
20         */
21 };
22
23 void
24 xmlrpc_dispatchCall(struct _xmlrpc_env *      const envP, 
25                     struct _xmlrpc_registry * const registryP,
26                     const char *              const methodName, 
27                     struct _xmlrpc_value *    const paramArrayP,
28                     struct _xmlrpc_value **   const resultPP);
29
30 #endif