Replace calls to osrfAppSessionMakeRequest() with
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 15 Dec 2009 01:47:57 +0000 (01:47 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 15 Dec 2009 01:47:57 +0000 (01:47 +0000)
calls to osrfAppSessionSendRequest().

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

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1874 9efc2488-bf62-4759-914b-345cdb29e865

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

index ec6711d..0b57ade 100644 (file)
@@ -89,7 +89,7 @@ int osrfMathRun( osrfMethodContext* ctx ) {
                        /*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);
 
index d7748fe..918a06c 100644 (file)
@@ -64,7 +64,7 @@ int osrfVersion( osrfMethodContext* ctx ) {
                        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);
 
index 122f992..05fd03f 100644 (file)
@@ -108,8 +108,8 @@ int osrf_settings_retrieve(const char* hostname) {
                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);