]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_system.h
Docs: Keep all source syntax consistent in README
[OpenSRF.git] / include / opensrf / osrf_system.h
1 /**
2         @file osrf_system.h
3         @brief Header for various top-level system routines.
4 */
5
6 #ifndef OSRF_SYSTEM_H
7 #define OSRF_SYSTEM_H
8
9 #include <opensrf/transport_client.h>
10 #include <opensrf/utils.h>
11 #include <opensrf/log.h>
12 #include <opensrf/osrf_settings.h>
13 #include <opensrf/osrfConfig.h>
14 #include <opensrf/osrf_cache.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 void osrfSystemSetPidFile( const char* name );
21
22 int osrf_system_bootstrap_client( char* config_file, char* contextnode );
23
24 int osrfSystemBootstrapClientResc( const char* config_file,
25                 const char* contextnode, const char* resource );
26
27 int osrfSystemBootstrap( const char* hostname, const char* configfile,
28                 const char* contextNode );
29
30 int osrf_system_service_ctrl(
31     const char* host,    const char* config,
32     const char* context, const char* piddir, 
33     const char* action,  const char* service);
34
35 transport_client* osrfSystemGetTransportClient( void );
36
37 int osrf_system_disconnect_client();
38
39 int osrf_system_shutdown( void );
40
41 void osrfSystemIgnoreTransportClient();
42
43 int osrfSystemInitCache(void);
44
45 extern osrfStringArray* log_protect_arr;
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif