]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_settings.h
set the 'from' address in outbound jabber messages
[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 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 typedef struct { 
22         char* hostname; 
23         jsonObject* config; 
24 } osrf_host_config;
25
26
27 osrf_host_config* osrf_settings_new_host_config(const char* hostname);
28 void osrf_settings_free_host_config(osrf_host_config*);
29 char* osrf_settings_host_value(const char* path, ...);
30 jsonObject* osrf_settings_host_value_object(const char* format, ...);
31 int osrf_settings_retrieve(const char* hostname);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif
38