summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-02-27 02:05:54 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2014-02-27 13:51:18 -0800
commit7027bb256d0d1ab5dd58b6d7fb02ff2f547ae4c2 (patch)
treee145d73c84392eb5f3b8c72c46a377f027d29a8c /tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page
parent93a63a77cfda14f7bd69aef88d6a2502903d62f0 (diff)
downloadgobject-introspection-7027bb256d0d1ab5dd58b6d7fb02ff2f547ae4c2.tar.gz
g-ir-compiler: Add support for callback fields on GObjects
Use ParseState enum instead of a boolean for the ParseContexts embedded_type flag. This allows specific tracking of the embedded type currently being parsed which can now either be STATE_STRUCT_FIELD or STATE_CLASS_FIELD (or allow for future expansion). Add ParseState::STATE_NONE as the default for this field. Fix GObject FieldBlob validation to take into account the sizeof CallbackBlobs (copied from the struct validator). Add static g_object_info_get_field_offset which parallels g_struct_info_get_field_offset which is needed since callback fields may vary in size. https://bugzilla.gnome.org/show_bug.cgi?id=725198
Diffstat (limited to 'tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page')
-rw-r--r--tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page
new file mode 100644
index 00000000..d9f3754c
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.function_ptr.page
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj.function_ptr"
+ type="topic"
+ style="callback"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="index" group="callback" type="guide"/>
+ </info>
+ <title>Regress.TestObj.function_ptr</title>
+ <synopsis><code mime="text/x-gjs">
+function onfunction_ptr(): void {
+}
+ </code></synopsis>
+
+
+
+</page>