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