From: erickson Date: Tue, 19 Apr 2005 14:39:37 +0000 (+0000) Subject: should have been commit some time ago X-Git-Tag: osrf_rel_2_0_1~1591 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f5e0fc727a1d40d9b26ec5432cc4af8ac3b7508c;p=OpenSRF.git should have been commit some time ago git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@281 9efc2488-bf62-4759-914b-345cdb29e865 --- 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