summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-08-02 10:49:24 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-08-02 10:49:24 +0100
commite2940325835c1a83945328b5a37f42c896fef550 (patch)
tree311855a9da13ddd54ec51b95d0e751a42a34b3cc
parent5b21b68299ceb33d42a8b76669ceeefe5c099825 (diff)
downloadpango-e2940325835c1a83945328b5a37f42c896fef550.tar.gz
Ignore unprefixed symbols
The unprefixed `script_*` symbols are marked as `skip`, but the introspection scanner will still warn about them because the annotations are resolved after parsing the C code.
-rw-r--r--pango/pango-engine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pango-engine.h b/pango/pango-engine.h
index f15747c6..25cfd6ba 100644
--- a/pango/pango-engine.h
+++ b/pango/pango-engine.h
@@ -287,6 +287,11 @@ struct _PangoEngineInfo
gint n_scripts;
};
+/* We should to ignore these unprefixed symbols when going through
+ * this header with the introspection scanner
+ */
+#ifndef __GI_SCANNER__
+
/**
* script_engine_list: (skip)
* @engines: location to store a pointer to an array of engines.
@@ -446,6 +451,8 @@ prefix ## _register_type (GTypeModule *module) \
#endif /* PANGO_DISABLE_DEPRECATED */
+#endif /* __GI_SCANNER__ */
+
G_END_DECLS
#endif /* __PANGO_ENGINE_H__ */