diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-20 17:44:09 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-20 18:54:42 -0300 |
commit | 8398ce7b33dd9b6866795998d60e9bc7bb7090e2 (patch) | |
tree | 5f6350087bf890d3e43d472829d2e3cd8a6ca8e8 /giscanner/giscannermodule.c | |
parent | 635b6ec35fbb1c2355e9b8b336f1a9164cc44034 (diff) | |
download | gobject-introspection-8398ce7b33dd9b6866795998d60e9bc7bb7090e2.tar.gz |
[scanner] Support private/public directives
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594125
Diffstat (limited to 'giscanner/giscannermodule.c')
-rw-r--r-- | giscanner/giscannermodule.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index b4aae792..de65d6f3 100644 --- a/giscanner/giscannermodule.c +++ b/giscanner/giscannermodule.c @@ -119,6 +119,13 @@ symbol_get_line (PyGISourceSymbol *self, } static PyObject * +symbol_get_private (PyGISourceSymbol *self, + void *context) +{ + return PyBool_FromLong (self->symbol->private); +} + +static PyObject * symbol_get_ident (PyGISourceSymbol *self, void *context) { @@ -202,6 +209,7 @@ static const PyGetSetDef _PyGISourceSymbol_getsets[] = { { "const_string", (getter)symbol_get_const_string, NULL, NULL}, { "source_filename", (getter)symbol_get_source_filename, NULL, NULL}, { "line", (getter)symbol_get_line, NULL, NULL}, + { "private", (getter)symbol_get_private, NULL, NULL}, { 0 } }; |