diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-09-04 15:07:02 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-09-04 15:07:02 +0200 |
commit | ff98a0702c71e1b729ed227b202ec40edb7b2d9c (patch) | |
tree | e69b337b702fa3f3691674963f053346873e97ad /server_communication.h | |
parent | 0e7966127623f98c3bd591bc5497fad7a13bcba9 (diff) |
Added proper error handling to server communication.
Diffstat (limited to 'server_communication.h')
-rw-r--r-- | server_communication.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server_communication.h b/server_communication.h index ecf1fdb..023ebd1 100644 --- a/server_communication.h +++ b/server_communication.h @@ -5,10 +5,10 @@ #include <glib.h> -gboolean server_ping(struct server *server); -gchar **server_find(struct server *server, const gchar *type, const gchar *str); -gchar **server_list(struct server *server, const gchar *directory); +gboolean server_ping(struct server *server, GError **error); +gchar **server_find(struct server *server, const gchar *type, const gchar *str, GError **error); +gchar **server_list(struct server *server, const gchar *directory, GError **error); gboolean server_get(struct server *server, const gchar *type, - const gchar *localfile, const gchar *remotefile); + const gchar *localfile, const gchar *remotefile, GError **error); #endif |