summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJussi Kukkonen <jku@openedhand.com>2008-06-02 08:01:24 +0000
committerJussi Kukkonen <jku@openedhand.com>2008-06-02 08:01:24 +0000
commit7db853933aac3b0708bdc305935f59d5c457c4b9 (patch)
tree5e6c3a801d934532d32efe062b4668f311fc5915 /tests
parent2b5f4797acdb8b78110c4f5bbcf4f667f21ffea3 (diff)
downloadgupnp-vala-7db853933aac3b0708bdc305935f59d5c457c4b9.tar.gz
Add comments about gcc warnings in examples and update TODO
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/bindings/gupnp-vala@1014 d8cb91d7-bff9-0310-92b9-80b65e4482b2
Diffstat (limited to 'tests')
-rw-r--r--tests/introspection-test.vala14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/introspection-test.vala b/tests/introspection-test.vala
index 5b819a9..5fd5d08 100644
--- a/tests/introspection-test.vala
+++ b/tests/introspection-test.vala
@@ -3,9 +3,6 @@ using GUPnP;
/*
* TODO:
- * * introspection callback (on_get_introspection) error-argument
- * should be const in the generated code
- * * Fix the list "content casts" once the bindings have typed lists...
* * call setlocale
* * SIGTERM handler?
*/
@@ -59,6 +56,9 @@ public class Test.IntrospectionTest : Object {
private void on_service_proxy_available (GUPnP.ControlPoint cp,
GUPnP.ServiceProxy proxy) {
if (async) {
+ /* this will result in C compiler warning because
+ * there's no way to make the callback signature have
+ * "const GError" argument in Vala */
proxy.get_introspection_async (on_get_introspection);
} else {
try {
@@ -92,8 +92,10 @@ public class Test.IntrospectionTest : Object {
}
private void print_state_variables (GUPnP.ServiceIntrospection introspection) {
+ /* this will result in C compiler warning since the return value
+ is actually "_const_ GList*", and Vala can't express that. */
weak List<ServiceStateVariableInfo> variables =
- (List<ServiceStateVariableInfo>) introspection.list_state_variables ();
+ introspection.list_state_variables ();
if (variables != null) {
print ("State variables:\n");
@@ -148,8 +150,10 @@ public class Test.IntrospectionTest : Object {
}
private void print_actions (GUPnP.ServiceIntrospection introspection) {
+ /* this will result in C compiler warning since the return value
+ is actually "_const_ GList*", and Vala can't express that. */
weak List<ServiceActionInfo> actions =
- (List<ServiceStateVariableInfo>) introspection.list_actions ();
+ introspection.list_actions ();
if (actions != null) {
print ("Actions:\n");