[libsocialweb] vala: Use a non-const GList* in SwClientGetServicesCallback
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] vala: Use a non-const GList* in SwClientGetServicesCallback
- Date: Wed, 9 Mar 2011 23:31:01 +0000 (UTC)
commit 562d7f985e49545255e1edfd27fe5f0a2e438d9e
Author: Marco Barisione <marco barisione org>
Date: Wed Oct 27 11:53:02 2010 +0100
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).
libsocialweb-client/sw-client.h | 4 ++++
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]