[libsocialweb/vala: 7/9] vala: Use a non-const GList* in SwClientGetServicesCallback
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb/vala: 7/9] vala: Use a non-const GList* in SwClientGetServicesCallback
- Date: Tue, 22 Feb 2011 14:56:31 +0000 (UTC)
commit dbfbcd4171803bcfffe16e03dc10084402543f6e
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]