]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/libstack/osrf_system.h
0b9b262dde05dd56ea3343909c3f2068e22b683d
[OpenSRF.git] / src / libstack / osrf_system.h
1 #ifndef OSRF_SYSTEM_H
2 #define OSRF_SYSTEM_H
3
4 #include "opensrf/transport_client.h"
5 #include "utils.h"
6 #include "logging.h"
7 //#include "osrf_config.h"
8 #include "osrf_settings.h"
9 #include "osrfConfig.h"
10
11
12 /** Connects to jabber.  Returns 1 on success, 0 on failure 
13         contextnode is the location in the config file where we collect config info
14 */
15
16
17 int osrf_system_bootstrap_client( char* config_file, char* contextnode );
18
19 /* bootstraps a client adding the given resource string to the host/pid, etc. resource string */
20 int osrf_system_bootstrap_client_resc( char* config_file, char* contextnode, char* resource );
21
22 transport_client* osrf_system_get_transport_client();
23
24 /* disconnects and destroys the current client connection */
25 int osrf_system_disconnect_client();
26 int osrf_system_shutdown(); 
27
28 char* osrf_get_config_context();
29
30 char* osrf_get_bootstrap_config();
31
32 #endif