]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/jserver/osrf_chat.h
Adding comments and tinkering with white space.
[OpenSRF.git] / src / jserver / osrf_chat.h
1 /*
2 Copyright (C) 2005  Georgia Public Library Service 
3 Bill Erickson <billserickson@gmail.com>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 */
15
16 #ifndef OSRF_CHAT_H
17 #define OSRF_CHAT_H
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct osrfChatNodeStruct;
24 typedef struct osrfChatNodeStruct osrfChatNode;
25
26 struct osrfChatServerStruct;
27 typedef struct osrfChatServerStruct osrfChatServer;
28
29 /* @param s2sSecret The Server to server secret.  OK to leave NULL if no
30         server to server communication is expected
31 */
32 osrfChatServer* osrfNewChatServer( const char* domain, const char* s2sSecret, int s2sport );
33
34 int osrfChatServerConnect( osrfChatServer* cs, int port, int s2sport, char* listenAddr );
35
36 int osrfChatServerWait( osrfChatServer* server );
37 void osrfChatServerFree( osrfChatServer* cs );
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif
44
45