#ifndef REMOTE_H
#define REMOTE_H
+#include <glib.h>
-struct RemoteConnection;
-
-using RemoteReadFunc = void (RemoteConnection *, const gchar *, GIOChannel *, gpointer);
+struct CollectionData;
struct RemoteConnection {
gint server;
gchar *path;
gint channel_id;
- RemoteReadFunc *read_func;
+
+ using ReadFunc = void (RemoteConnection *, const gchar *, GIOChannel *, gpointer);
+ ReadFunc *read_func;
gpointer read_data;
GList *clients;
RemoteConnection *remote_server_init(gchar *path, CollectionData *command_collection);
gboolean remote_server_exists(const gchar *path);
-
+gboolean is_remote_command(const gchar *text);
#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */