[Opensrf-commits] r1231 - trunk/src/libopensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 31 13:00:41 EST 2008
Author: miker
Date: 2008-01-31 12:33:02 -0500 (Thu, 31 Jan 2008)
New Revision: 1231
Modified:
trunk/src/libopensrf/osrf_settings.c
Log:
camelCasingPatch from Scott McKellar
Modified: trunk/src/libopensrf/osrf_settings.c
===================================================================
--- trunk/src/libopensrf/osrf_settings.c 2008-01-30 17:36:43 UTC (rev 1230)
+++ trunk/src/libopensrf/osrf_settings.c 2008-01-31 17:33:02 UTC (rev 1231)
@@ -36,28 +36,28 @@
if(!config) {
- osrfAppSession* session = osrf_app_client_session_init("opensrf.settings");
+ osrfAppSession* session = osrfAppSessionClientInit("opensrf.settings");
jsonObject* params = jsonNewObject(NULL);
jsonObjectPush(params, jsonNewObject(hostname));
int req_id = osrfAppSessionMakeRequest(
session, params, "opensrf.settings.host_config.get", 1, NULL );
- osrf_message* omsg = osrfAppSessionRequestRecv( session, req_id, 60 );
+ osrfMessage* omsg = osrfAppSessionRequestRecv( session, req_id, 60 );
jsonObjectFree(params);
if(!omsg) {
- osrfLogError( OSRF_LOG_MARK, "No osrf_message received from host %s (timeout?)", hostname);
+ osrfLogError( OSRF_LOG_MARK, "No osrfMessage received from host %s (timeout?)", hostname);
} else if(!omsg->_result_content) {
- osrf_message_free(omsg);
+ osrfMessageFree(omsg);
osrfLogError(
OSRF_LOG_MARK,
- "NULL or non-existant osrf_message result content received from host %s, "
+ "NULL or non-existant osrfMessage result content received from host %s, "
"broken message or no settings for host",
hostname
);
} else {
config = osrf_settings_new_host_config(hostname);
config->config = jsonObjectClone(omsg->_result_content);
- osrf_message_free(omsg);
+ osrfMessageFree(omsg);
}
osrf_app_session_request_finish( session, req_id );
More information about the opensrf-commits
mailing list