]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/libstack/osrf_settings.h
4666aa0696402eea5c0d095ca5d33b3c2e5ea1ec
[OpenSRF.git] / src / libstack / osrf_settings.h
1 #include <stdio.h>
2 #include <string.h>
3 #include <unistd.h>
4 #include <stdlib.h>
5 #include <time.h>
6 #include <stdarg.h>
7
8 #include "logging.h"
9 #include "utils.h"
10 #include "objson/object.h"
11 #include "objson/json_parser.h"
12 #include "osrf_app_session.h"
13
14 #ifndef OSRF_SETTINGS_H
15 #define OSRF_SETTINGS_H
16
17 typedef struct { 
18         char* hostname; 
19         object* config; 
20 } osrf_host_config;
21
22
23 osrf_host_config* osrf_settings_new_host_config(char* hostname);
24 void osrf_settings_free_host_config(osrf_host_config*);
25 char* osrf_settings_host_value(char* path, ...);
26 object* osrf_settings_host_value_object(char* format, ...);
27 int osrf_settings_retrieve(char* hostname);
28
29 #endif
30