From f5e0fc727a1d40d9b26ec5432cc4af8ac3b7508c Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 19 Apr 2005 14:39:37 +0000 Subject: [PATCH] should have been commit some time ago git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@281 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_message.h | 8 +++++++- include/opensrf/osrf_system.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/opensrf/osrf_message.h b/include/opensrf/osrf_message.h index a4beb68..1f992fc 100644 --- a/include/opensrf/osrf_message.h +++ b/include/opensrf/osrf_message.h @@ -34,6 +34,8 @@ struct osrf_message_struct { enum M_TYPE m_type; int thread_trace; int protocol; + + int parse_json; /* if we're a STATUS message */ char* status_name; @@ -65,7 +67,7 @@ typedef struct osrf_message_struct osrf_message; osrf_message* osrf_message_init( enum M_TYPE type, int thread_trace, int protocol ); void osrf_message_set_request_info( osrf_message*, char* param_name, json* params ); void osrf_message_set_status_info( osrf_message*, char* status_name, char* status_text, int status_code ); -void osrf_message_set_result_content( osrf_message*, json* result_content ); +void osrf_message_set_result_content( osrf_message*, char* json_string ); void osrf_message_free( osrf_message* ); char* osrf_message_to_xml( osrf_message* ); /** Pushes any message retreived from the xml into the 'msgs' array. @@ -74,6 +76,10 @@ char* osrf_message_to_xml( osrf_message* ); */ int osrf_message_from_xml( char* xml, osrf_message* msgs[] ); +/* decides whether all message automatically parse incoming json data */ +/* to change a single message, set msg->parse_json accordingly */ +void osrf_message_set_json_parse( int bool ); + diff --git a/include/opensrf/osrf_system.h b/include/opensrf/osrf_system.h index 9a933b7..7247d3a 100644 --- a/include/opensrf/osrf_system.h +++ b/include/opensrf/osrf_system.h @@ -7,5 +7,6 @@ int osrf_system_bootstrap_client(); transport_client* osrf_system_get_transport_client(); +int osrf_system_shutdown(); #endif -- 2.43.2