diff options
author | Colin Walters <walters@verbum.org> | 2010-08-19 09:31:47 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-08-31 16:05:56 -0400 |
commit | f8ddb18535cfcc60fc28095f0f6db2895d90edac (patch) | |
tree | 63162306bc979d01e12cff4ddcdce304ff888121 /tests/scanner/utility.c | |
parent | e66d50732c8ce5cf3ef198e114d94e102a1c4911 (diff) | |
download | gobject-introspection-f8ddb18535cfcc60fc28095f0f6db2895d90edac.tar.gz |
tests/scanner: Update annotations and tests
First of all, add missing (transfer) annotations that will be
required by the new scanner.
Other changes:
Don't use the (type bitfield) hack; the new scanner will not accept it.
Use shifts in the flag constants instead.
Use typedefs consistently for structures.
Drop scanning of anonymous structure/union members.
Diffstat (limited to 'tests/scanner/utility.c')
-rw-r--r-- | tests/scanner/utility.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/scanner/utility.c b/tests/scanner/utility.c index 5ae5ed3e..97afa430 100644 --- a/tests/scanner/utility.c +++ b/tests/scanner/utility.c @@ -3,13 +3,9 @@ G_DEFINE_TYPE (UtilityObject, utility_object, G_TYPE_OBJECT); /** - * UtilityFlagType: (type bitfield) - **/ - -/** * UtilityBuffer: * - * @data: (type pointer): the data + * @data: (type gpointer): the data **/ static void @@ -34,6 +30,13 @@ utility_object_watch_dir (UtilityObject *object, } +/** + * utility_dir_foreach: + * @path:: + * @func: (scope call): + * @user_data:: + * + */ void utility_dir_foreach (const char *path, UtilityFileFunc func, gpointer user_data) { |