]> git.evergreen-ils.org Git - Evergreen.git/blob - OpenSRF/src/libstack/osrf_settings.h
all opensrf related headers are shoved into opensrf/*.h
[Evergreen.git] / OpenSRF / src / libstack / 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/logging.h"
12 #include "opensrf/utils.h"
13 #include "objson/object.h"
14 #include "objson/json_parser.h"
15 #include "osrf_app_session.h"
16
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