]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_system.h
OK. This is the first early C version of the OpenSRF stack. It's highly
[OpenSRF.git] / include / opensrf / osrf_system.h
1 #include "opensrf/transport_client.h"
2
3 #ifndef OSRF_SYSTEM_H
4 #define OSRF_SYSTEM_H
5
6 /** Connects to jabber.  Returns 1 on success, 0 on failure */
7 int osrf_system_bootstrap_client(); 
8
9 /** Useful for managing multiple connections.  Any clients added should
10   * live through the duration of the process so there are no cleanup procedures
11   * as of yet 
12   */
13 struct transport_client_cache_struct {
14         transport_client* client;
15         char* service;
16         struct transport_client_cache_struct* next;
17 };
18 typedef struct transport_client_cache_struct transport_client_cache;
19
20 void osrf_system_push_transport_client( transport_client* client, char* service );
21 transport_client* osrf_system_get_transport_client( char* service );
22
23
24 #endif