]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_settings.h
for-loop initial declaration issue; realigned some const-ification
[OpenSRF.git] / include / opensrf / osrf_settings.h
1 #ifndef OSRF_SETTINGS_H
2 #define OSRF_SETTINGS_H
3
4 #include <stdio.h>
5 #include <string.h>
6 #include <unistd.h>
7 #include <stdlib.h>
8 #include <time.h>
9 #include <stdarg.h>
10
11 #include <opensrf/log.h>
12 #include <opensrf/utils.h>
13 #include <opensrf/osrf_app_session.h>
14
15 #include <opensrf/osrf_json.h>
16
17 typedef struct { 
18         char* hostname; 
19         jsonObject* config; 
20 } osrf_host_config;
21
22
23 osrf_host_config* osrf_settings_new_host_config(const char* hostname);
24 void osrf_settings_free_host_config(osrf_host_config*);
25 char* osrf_settings_host_value(const char* path, ...);
26 jsonObject* osrf_settings_host_value_object(const char* format, ...);
27 int osrf_settings_retrieve(const char* hostname);
28
29 #endif
30