1 #ifndef OSRF_SETTINGS_H
2 #define OSRF_SETTINGS_H
11 #include <opensrf/log.h>
12 #include <opensrf/utils.h>
13 #include <opensrf/osrf_app_session.h>
15 #include <opensrf/osrf_json.h>
19 @brief Facility for retrieving server configuration settings.
21 Look up server configuration settings from a settings server, cache them in the form of
22 a jsonObject, and retrieve them on request.
24 Not generally intended for client processes, unless they are also servers in their own right.
30 struct osrf_host_config_;
31 typedef struct osrf_host_config_ osrf_host_config;
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);