summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Barisione <marco@barisione.org>2010-10-27 10:53:02 (GMT)
committerRoss Burton <ross@linux.intel.com>2011-03-09 23:23:50 (GMT)
commit562d7f985e49545255e1edfd27fe5f0a2e438d9e (patch)
treeab801dd917d601f86b0ff00eee783404bb2bba6a
parent6e47b9fd154cea5f7c83ae4ad7d58cea97ba181c (diff)
downloadlibsocialweb-562d7f985e49545255e1edfd27fe5f0a2e438d9e.tar.gz
libsocialweb-562d7f985e49545255e1edfd27fe5f0a2e438d9e.tar.xz
vala: Use a non-const GList* in SwClientGetServicesCallback
Vala doesn't like const GList*s (that are a bad idea anyway), so we change the prototype of the function when compiling Vala code (but not in other cases to avoid breaking the API).
-rw-r--r--libsocialweb-client/sw-client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsocialweb-client/sw-client.h b/libsocialweb-client/sw-client.h
index c9f114a..326105f 100644
--- a/libsocialweb-client/sw-client.h
+++ b/libsocialweb-client/sw-client.h
@@ -59,7 +59,11 @@ typedef void (*SwClientIsOnlineCallback) (SwClient *client,
gpointer userdata);
typedef void (*SwClientGetServicesCallback) (SwClient *client,
+#ifdef IN_VALA_INCLUDE
+ GList *services,
+#else
const GList *services,
+#endif
gpointer userdata);
void sw_client_get_services (SwClient *client,