Patch from Scott McKellar; use camelCase instead of under_score function names
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 1 Jan 2008 01:40:30 +0000 (01:40 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 1 Jan 2008 01:40:30 +0000 (01:40 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1191 9efc2488-bf62-4759-914b-345cdb29e865

src/libopensrf/osrf_settings.c

index 9b9f944..a189932 100644 (file)
@@ -36,12 +36,12 @@ int osrf_settings_retrieve(const char* hostname) {
 
        if(!config) {
 
 
        if(!config) {
 
-               osrf_app_session* session = osrf_app_client_session_init("opensrf.settings");
+               osrfAppSession* session = osrf_app_client_session_init("opensrf.settings");
                jsonObject* params = jsonNewObject(NULL);
                jsonObjectPush(params, jsonNewObject(hostname));
                jsonObject* params = jsonNewObject(NULL);
                jsonObjectPush(params, jsonNewObject(hostname));
-               int req_id = osrf_app_session_make_req
+               int req_id = osrfAppSessionMakeRequest
                        session, params, "opensrf.settings.host_config.get", 1, NULL );
                        session, params, "opensrf.settings.host_config.get", 1, NULL );
-               osrf_message* omsg = osrf_app_session_request_recv( session, req_id, 60 );
+               osrf_message* omsg = osrfAppSessionRequestRecv( session, req_id, 60 );
                jsonObjectFree(params);
 
                if(!omsg) {
                jsonObjectFree(params);
 
                if(!omsg) {
@@ -61,7 +61,7 @@ int osrf_settings_retrieve(const char* hostname) {
                }
 
                osrf_app_session_request_finish( session, req_id );
                }
 
                osrf_app_session_request_finish( session, req_id );
-               osrf_app_session_destroy( session );
+               osrfAppSessionFree( session );
 
                if(!config) {
                        osrfLogError( OSRF_LOG_MARK, "Unable to load config for host %s", hostname);
 
                if(!config) {
                        osrfLogError( OSRF_LOG_MARK, "Unable to load config for host %s", hostname);