Effectively drop empty newlines at end of files (missing from rev 535)
[geeqie.git] / src / remote.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  *
5  * Author: John Ellis
6  *
7  * This software is released under the GNU General Public License (GNU GPL).
8  * Please read the included file COPYING for more information.
9  * This software comes with no warranty of any kind, use at your own risk!
10  */
11
12
13 #ifndef REMOTE_H
14 #define REMOTE_H
15
16
17 typedef struct _RemoteConnection RemoteConnection;
18
19 typedef void RemoteReadFunc(RemoteConnection *rc, const char *text, gpointer data);
20
21 struct _RemoteConnection {
22         gint server;
23         int fd;
24         gchar *path;
25
26         gint channel_id;
27         RemoteReadFunc *read_func;
28         gpointer read_data;
29
30         GList *clients;
31 };
32
33
34 RemoteConnection *remote_server_open(const gchar *path);
35 void remote_server_subscribe(RemoteConnection *rc, RemoteReadFunc *func, gpointer data);
36
37 RemoteConnection *remote_client_open(const gchar *path);
38 gint remote_client_send(RemoteConnection *rc, const gchar *text);
39
40 void remote_close(RemoteConnection *rc);
41
42
43 #endif