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