From c0c2a690beab43ef986afb85105043b85f414b16 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 20 Apr 2005 20:48:00 +0000 Subject: [PATCH] altered to use new osrf_message json string format git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@288 9efc2488-bf62-4759-914b-345cdb29e865 --- src/router/router.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/router/router.c b/src/router/router.c index d8605be..277fdee 100644 --- a/src/router/router.c +++ b/src/router/router.c @@ -989,7 +989,8 @@ osrf_message** router_registrar_process_app_request( result_array[0] = osrf_message_init( RESULT, omsg->thread_trace, omsg->protocol ); - osrf_message_set_result_content( result_array[0], result_content ); + osrf_message_set_result_content( result_array[0], + json_object_to_json_string(result_content) ); json_object_put(result_content); @@ -1056,7 +1057,8 @@ osrf_message** router_registrar_process_app_request( result_array[0] = osrf_message_init( RESULT, omsg->thread_trace, omsg->protocol ); - osrf_message_set_result_content( result_array[0], result_content ); + osrf_message_set_result_content( result_array[0], + json_object_to_json_string(result_content) ); json_object_put(result_content); @@ -1085,17 +1087,17 @@ osrf_message** router_registrar_process_app_request( result_array[0] = osrf_message_init( RESULT, omsg->thread_trace, omsg->protocol ); - osrf_message_set_result_content( result_array[0], content ); + osrf_message_set_result_content( result_array[0], json_object_to_json_string(content) ); json_object_put(content); result_array[1] = osrf_message_init( RESULT, omsg->thread_trace, omsg->protocol ); - osrf_message_set_result_content( result_array[1], content2 ); + osrf_message_set_result_content( result_array[1], json_object_to_json_string(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 ); + osrf_message_set_result_content( result_array[1], json_object_to_json_string(content3) ); json_object_put(content3); -- 2.11.0