[Opensrf-commits] r1874 - in trunk/src: c-apps libopensrf (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 14 20:47:58 EST 2009


Author: scottmk
Date: 2009-12-14 20:47:57 -0500 (Mon, 14 Dec 2009)
New Revision: 1874

Modified:
   trunk/src/c-apps/osrf_math.c
   trunk/src/c-apps/osrf_version.c
   trunk/src/libopensrf/osrf_settings.c
Log:
Replace calls to osrfAppSessionMakeRequest() with
calls to osrfAppSessionSendRequest().

M    src/c-apps/osrf_version.c
M    src/c-apps/osrf_math.c
M    src/libopensrf/osrf_settings.c


Modified: trunk/src/c-apps/osrf_math.c
===================================================================
--- trunk/src/c-apps/osrf_math.c	2009-12-14 20:38:44 UTC (rev 1873)
+++ trunk/src/c-apps/osrf_math.c	2009-12-15 01:47:57 UTC (rev 1874)
@@ -89,7 +89,7 @@
 			/*osrfAppSessionConnect(ses);*/
 
 			/* dbmath uses the same method names that math does */
-			int req_id = osrfAppSessionMakeRequest( ses, newParams, ctx->method->name, 1, NULL );
+			int req_id = osrfAppSessionSendRequest( ses, newParams, ctx->method->name, 1 );
 			osrfMessage* omsg = osrfAppSessionRequestRecv( ses, req_id, 60 );
 			jsonObjectFree(newParams);
 

Modified: trunk/src/c-apps/osrf_version.c
===================================================================
--- trunk/src/c-apps/osrf_version.c	2009-12-14 20:38:44 UTC (rev 1873)
+++ trunk/src/c-apps/osrf_version.c	2009-12-15 01:47:57 UTC (rev 1874)
@@ -64,7 +64,7 @@
 			jsonObjectPush( tmpArray, jsonObjectClone(jsonObjectGetIndex(ctx->params, i)));
 
 		osrfAppSession* ses = osrfAppSessionClientInit(service);
-		int reqid = osrfAppSessionMakeRequest( ses, tmpArray, methd, 1, NULL );
+		int reqid = osrfAppSessionSendRequest( ses, tmpArray, methd, 1 );
 		osrfMessage* omsg = osrfAppSessionRequestRecv( ses, reqid, 60 );
 		jsonObjectFree(tmpArray);
 

Modified: trunk/src/libopensrf/osrf_settings.c
===================================================================
--- trunk/src/libopensrf/osrf_settings.c	2009-12-14 20:38:44 UTC (rev 1873)
+++ trunk/src/libopensrf/osrf_settings.c	2009-12-15 01:47:57 UTC (rev 1874)
@@ -108,8 +108,8 @@
 		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 );
+		int req_id = osrfAppSessionSendRequest( 
+			session, params, "opensrf.settings.host_config.get", 1 );
 		osrfMessage* omsg = osrfAppSessionRequestRecv( session, req_id, 60 );
 		jsonObjectFree(params);
 



More information about the opensrf-commits mailing list