Merged libopensrf source directories (libtransport, libstack, and utils) into a singl...
[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 <objson/object.h>
16 #include <objson/json_parser.h>
17
18 typedef struct { 
19         char* hostname; 
20         jsonObject* config; 
21 } osrf_host_config;
22
23
24 osrf_host_config* osrf_settings_new_host_config(char* hostname);
25 void osrf_settings_free_host_config(osrf_host_config*);
26 char* osrf_settings_host_value(char* path, ...);
27 jsonObject* osrf_settings_host_value_object(char* format, ...);
28 int osrf_settings_retrieve(char* hostname);
29
30 #endif
31