/*
* Geeqie
* (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2012 The Geeqie Team
*
* Author: John Ellis
*
typedef struct _RemoteConnection RemoteConnection;
-typedef void RemoteReadFunc(RemoteConnection *rc, const char *text, gpointer data);
+typedef void RemoteReadFunc(RemoteConnection *rc, const gchar *text, GIOChannel *channel, gpointer data);
struct _RemoteConnection {
gint server;
- int fd;
+ gint fd;
gchar *path;
gint channel_id;
};
-RemoteConnection *remote_server_open(const gchar *path);
-void remote_server_subscribe(RemoteConnection *rc, RemoteReadFunc *func, gpointer data);
-
-RemoteConnection *remote_client_open(const gchar *path);
-gint remote_client_send(RemoteConnection *rc, const gchar *text);
-
void remote_close(RemoteConnection *rc);
+GList *remote_build_list(GList *list, gint argc, gchar *argv[], GList **errors);
+void remote_help(void);
+void remote_control(const gchar *arg_exec, GList *remote_list, const gchar *path,
+ GList *cmd_list, GList *collection_list);
+RemoteConnection *remote_server_init(gchar *path, CollectionData *command_collection);
-#endif
+#endif
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */