From ff98a0702c71e1b729ed227b202ec40edb7b2d9c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 4 Sep 2010 15:07:02 +0200 Subject: Added proper error handling to server communication. --- server_communication.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server_communication.h') 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 -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 -- cgit v1.2.3