[libpeas] Added test for implementing interface with a vfunc that has no invoker
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Added test for implementing interface with a vfunc that has no invoker
- Date: Tue, 25 Jan 2011 19:15:23 +0000 (UTC)
commit ecbd29ae938b2e917fef8cc00c9c32711a47a1b5
Author: Garrett Regier <alias301 gmail com>
Date: Tue Jan 18 01:53:11 2011 -0800
Added test for implementing interface with a vfunc that has no invoker
.../libpeas/introspection/introspection-callable.h | 5 ++++-
tests/libpeas/testing/testing-extension.c | 6 ------
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/tests/libpeas/introspection/introspection-callable.h b/tests/libpeas/introspection/introspection-callable.h
index a34db52..eced875 100644
--- a/tests/libpeas/introspection/introspection-callable.h
+++ b/tests/libpeas/introspection/introspection-callable.h
@@ -50,12 +50,15 @@ struct _IntrospectionCallableInterface {
gboolean *called_1,
gboolean *called_2,
gboolean *called_3);
+
+ /* libpeas must have an invoker to implement an interface's vfunc */
+ void (*no_invoker_) (IntrospectionCallable *callable);
};
/*
* Public methods
*/
-GType introspection_callable_get_type (void) G_GNUC_CONST;
+GType introspection_callable_get_type (void) G_GNUC_CONST;
const gchar *introspection_callable_call_with_return (IntrospectionCallable *callable);
diff --git a/tests/libpeas/testing/testing-extension.c b/tests/libpeas/testing/testing-extension.c
index d1ca6a3..48a779f 100644
--- a/tests/libpeas/testing/testing-extension.c
+++ b/tests/libpeas/testing/testing-extension.c
@@ -36,12 +36,6 @@
#include "introspection-properties.h"
#include "introspection-unimplemented.h"
-/* TODO:
- * - IntrospectionCallable:
- * - No Invoker
- * - No Struct Field
- */
-
static gchar *extension_plugin;
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]