From: erickson Date: Wed, 2 Mar 2005 16:25:57 +0000 (+0000) Subject: added opensrf.system.method.all in the list of returned methods from the X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b9fa511814dc97b6c92cd9cd21b47909cff0b68d;p=opensrf%2Fbjwebb.git added opensrf.system.method.all in the list of returned methods from the the method.all request git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@151 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/router/router.c b/src/router/router.c index 63ef3ce..af7f510 100644 --- a/src/router/router.c +++ b/src/router/router.c @@ -1059,8 +1059,14 @@ osrf_message** router_registrar_process_app_request( json_object_object_add(content2, "server_class", json_object_new_string("router")); json_object_object_add(content2, "stream", json_object_new_string("0")); - result_array = safe_malloc(2*sizeof(osrf_message*)); - *num_responses = 2; + json* content3 = json_object_new_object(); + json_object_object_add(content3, "api_level", json_object_new_string("1")); + json_object_object_add(content3, "api_name", json_object_new_string("opensrf.system.method.all")); + json_object_object_add(content3, "server_class", json_object_new_string("router")); + json_object_object_add(content3, "stream", json_object_new_string("1")); + + result_array = safe_malloc(3*sizeof(osrf_message*)); + *num_responses = 3; result_array[0] = osrf_message_init( RESULT, omsg->thread_trace, omsg->protocol ); @@ -1072,6 +1078,12 @@ osrf_message** router_registrar_process_app_request( osrf_message_set_result_content( result_array[1], content2 ); json_object_put(content2); + result_array[2] = osrf_message_init( + RESULT, omsg->thread_trace, omsg->protocol ); + osrf_message_set_result_content( result_array[1], content3 ); + json_object_put(content3); + + }