]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_settings.h
1. Changed osrfLogFacilityToInt() so that it accepts
[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 /**
18         @file osrf_settings.h
19         @brief Facility for retrieving server configuration settings.
20
21         Look up server configuration settings from a settings server, cache them in the form of
22         a jsonObject, and retrieve them on request.
23
24         Not generally intended for client processes, unless they are also servers in their own right.
25 */
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 struct osrf_host_config_;
31 typedef struct osrf_host_config_ osrf_host_config;
32
33 void osrf_settings_free_host_config(osrf_host_config*);
34 char* osrf_settings_host_value(const char* path, ...);
35 jsonObject* osrf_settings_host_value_object(const char* format, ...);
36 int osrf_settings_retrieve(const char* hostname);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif
43