[Opensrf-commits] r1189 - trunk/src/srfsh
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 31 21:01:00 EST 2007
Author: miker
Date: 2007-12-31 20:37:39 -0500 (Mon, 31 Dec 2007)
New Revision: 1189
Modified:
trunk/src/srfsh/srfsh.c
Log:
Patch from Scott McKellar; use camelCase instead of under_score function names
Modified: trunk/src/srfsh/srfsh.c
===================================================================
--- trunk/src/srfsh/srfsh.c 2008-01-01 01:34:54 UTC (rev 1188)
+++ trunk/src/srfsh/srfsh.c 2008-01-01 01:37:39 UTC (rev 1189)
@@ -115,7 +115,7 @@
load_history();
- client = osrf_system_get_transport_client();
+ client = osrfSystemGetTransportClient();
/* main process loop */
int newline_needed = 1; /* used as boolean */
@@ -567,7 +567,7 @@
return 1;
}
- osrf_app_session* session = osrf_app_client_session_init(server);
+ osrfAppSession* session = osrf_app_client_session_init(server);
if(!osrf_app_session_connect(session)) {
osrfLogWarning( OSRF_LOG_MARK, "Unable to connect to remote service %s\n", server );
@@ -575,12 +575,12 @@
}
double start = get_timestamp_millis();
- //int req_id = osrf_app_session_make_request( session, params, method, 1, NULL );
- int req_id = osrf_app_session_make_req( session, params, method, 1, NULL );
+ int req_id = osrfAppSessionMakeRequest( session, params, method, 1, NULL );
- osrf_message* omsg = osrf_app_session_request_recv( session, req_id, recv_timeout );
+ osrf_message* omsg = osrfAppSessionRequestRecv( session, req_id, recv_timeout );
+
if(!omsg)
printf("\nReceived no data from server\n");
@@ -674,7 +674,7 @@
}
- omsg = osrf_app_session_request_recv( session, req_id, recv_timeout );
+ omsg = osrfAppSessionRequestRecv( session, req_id, recv_timeout );
}
@@ -694,7 +694,7 @@
osrf_app_session_request_finish( session, req_id );
osrf_app_session_disconnect( session );
- osrf_app_session_destroy( session );
+ osrfAppSessionFree( session );
return 1;
@@ -830,7 +830,7 @@
static int do_math( int count, int style ) {
- osrf_app_session* session = osrf_app_client_session_init( "opensrf.math" );
+ osrfAppSession* session = osrf_app_client_session_init( "opensrf.math" );
osrf_app_session_connect(session);
jsonObject* params = jsonParseString("[]");
@@ -863,8 +863,8 @@
++running;
double start = get_timestamp_millis();
- int req_id = osrf_app_session_make_req( session, params, methods[j], 1, NULL );
- osrf_message* omsg = osrf_app_session_request_recv( session, req_id, 5 );
+ int req_id = osrfAppSessionMakeRequest( session, params, methods[j], 1, NULL );
+ osrf_message* omsg = osrfAppSessionRequestRecv( session, req_id, 5 );
double end = get_timestamp_millis();
times[(4*i) + j] = end - start;
@@ -898,7 +898,7 @@
osrf_app_session_disconnect( session );
}
- osrf_app_session_destroy( session );
+ osrfAppSessionFree( session );
jsonObjectFree(params);
int c;
More information about the opensrf-commits
mailing list