Lines Matching refs:server
64 static XMLRPC_VALUE xi_system_describe_methods_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void*…
65 static XMLRPC_VALUE xi_system_list_methods_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void* use…
66 static XMLRPC_VALUE xi_system_method_signature_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void*…
67 static XMLRPC_VALUE xi_system_method_help_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void* user…
91 static void check_docs_loaded(XMLRPC_SERVER server, void* userData) { in check_docs_loaded() argument
92 if(server) { in check_docs_loaded()
93 q_iter qi = Q_Iter_Head_F(&server->docslist); in check_docs_loaded()
97 dm->method(server, userData); in check_docs_loaded()
107 static inline void describe_method(XMLRPC_SERVER server, XMLRPC_VALUE vector, const char* method) { in describe_method() argument
109 server_method* sm = find_method(server, method); in describe_method()
119 static XMLRPC_VALUE xi_system_describe_methods_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void*… in xi_system_describe_methods_cb() argument
127 check_docs_loaded(server, userData); in xi_system_describe_methods_cb()
129 xTypeList = XMLRPC_VectorGetValueWithID(server->xIntrospection, "typeList"); in xi_system_describe_methods_cb()
140 describe_method(server, xMethodList, XMLRPC_GetValueString(xParams)); in xi_system_describe_methods_cb()
147 describe_method(server, xMethodList, XMLRPC_GetValueString(xIter)); in xi_system_describe_methods_cb()
156 q_iter qi = Q_Iter_Head_F(&server->methodlist); in xi_system_describe_methods_cb()
170 static XMLRPC_VALUE xi_system_list_methods_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void* use… in xi_system_list_methods_cb() argument
173 q_iter qi = Q_Iter_Head_F(&server->methodlist); in xi_system_list_methods_cb()
187 static XMLRPC_VALUE xi_system_method_signature_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void*… in xi_system_method_signature_cb() argument
192 check_docs_loaded(server, userData); in xi_system_method_signature_cb()
195 server_method* sm = find_method(server, method); in xi_system_method_signature_cb()
246 static XMLRPC_VALUE xi_system_method_help_cb(XMLRPC_SERVER server, XMLRPC_REQUEST input, void* user… in xi_system_method_help_cb() argument
251 check_docs_loaded(server, userData); in xi_system_method_help_cb()
254 server_method* sm = find_method(server, method); in xi_system_method_help_cb()
276 void xi_register_system_methods(XMLRPC_SERVER server) { in xi_register_system_methods() argument
277 XMLRPC_ServerRegisterMethod(server, xi_token_system_list_methods, xi_system_list_methods_cb); in xi_register_system_methods()
278 XMLRPC_ServerRegisterMethod(server, xi_token_system_method_help, xi_system_method_help_cb); in xi_register_system_methods()
279 …XMLRPC_ServerRegisterMethod(server, xi_token_system_method_signature, xi_system_method_signature_c… in xi_register_system_methods()
280 …XMLRPC_ServerRegisterMethod(server, xi_token_system_describe_methods, xi_system_describe_methods_c… in xi_register_system_methods()
497 int XMLRPC_ServerAddIntrospectionData(XMLRPC_SERVER server, XMLRPC_VALUE desc) { in XMLRPC_ServerAddIntrospectionData() argument
499 if(server && desc) { in XMLRPC_ServerAddIntrospectionData()
502 XMLRPC_VALUE xServerTypes = XMLRPC_VectorGetValueWithID(server->xIntrospection, "typeList"); in XMLRPC_ServerAddIntrospectionData()
509 server_method* sm = find_method(server, name); in XMLRPC_ServerAddIntrospectionData()
524 if(!server->xIntrospection) { in XMLRPC_ServerAddIntrospectionData()
525 server->xIntrospection = XMLRPC_CreateVector(NULL, xmlrpc_vector_struct); in XMLRPC_ServerAddIntrospectionData()
528 XMLRPC_AddValueToVector(server->xIntrospection, xNewTypes); in XMLRPC_ServerAddIntrospectionData()
574 int XMLRPC_ServerRegisterIntrospectionCallback(XMLRPC_SERVER server, XMLRPC_IntrospectionCallback c… in XMLRPC_ServerRegisterIntrospectionCallback() argument
576 if(server && cb) { in XMLRPC_ServerRegisterIntrospectionCallback()
584 if(Q_PushTail(&server->docslist, dm)) { in XMLRPC_ServerRegisterIntrospectionCallback()