[Opensrf-commits] r1190 - trunk/src/gateway

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 31 21:02:20 EST 2007


Author: miker
Date: 2007-12-31 20:38:58 -0500 (Mon, 31 Dec 2007)
New Revision: 1190

Modified:
   trunk/src/gateway/osrf_json_gateway.c
Log:
Patch from Scott McKellar; use camelCase instead of under_score function names

Modified: trunk/src/gateway/osrf_json_gateway.c
===================================================================
--- trunk/src/gateway/osrf_json_gateway.c	2008-01-01 01:37:39 UTC (rev 1189)
+++ trunk/src/gateway/osrf_json_gateway.c	2008-01-01 01:38:58 UTC (rev 1190)
@@ -138,7 +138,7 @@
 	osrfLogDebug(OSRF_LOG_MARK, "osrf gateway: entered request handler");
 
 	/* verify we are connected */
-	if( !bootstrapped || !osrf_system_get_transport_client()) {
+	if( !bootstrapped || !osrfSystemGetTransportClient()) {
 		ap_log_rerror( APLOG_MARK, APLOG_ERR, 0, r, "Cannot process request "
 				"because the OpenSRF JSON gateway has not been bootstrapped...");
 		usleep( 100000 ); /* 100 milliseconds */
@@ -263,7 +263,7 @@
 			while( (str = osrfStringArrayGetString(mparams, i++)) ) 
 				jsonObjectPush(arr, parseJSONFunc(str));
 
-			req_id = osrf_app_session_make_req( session, arr, method, api_level, NULL );
+			req_id = osrfAppSessionMakeRequest( session, arr, method, api_level, NULL );
 		} else {
 
 			/**
@@ -278,7 +278,7 @@
 					jsonObjectPush(jsonParams, jsonXMLToJSONObject(str));
 				}
 
-				req_id = osrf_app_session_make_req( session, jsonParams, method, api_level, NULL );
+				req_id = osrfAppSessionMakeRequest( session, jsonParams, method, api_level, NULL );
 				jsonObjectFree(jsonParams);
 			}
 		}
@@ -411,7 +411,7 @@
 		else
 			ap_rputs( "}", r ); /* finish off the object */
 
-		osrf_app_session_destroy(session);
+		osrfAppSessionFree(session);
 	}
 
 	osrfLogInfo(OSRF_LOG_MARK, "Completed processing service=%s, method=%s", service, method);



More information about the opensrf-commits mailing list