summaryrefslogtreecommitdiff
path: root/gir
Commit message (Collapse)AuthorAgeFilesLines
* [Gio] Add missing return-value annotationsJohan Dahlin2010-07-281-0/+77
|
* Update GIMarshallingTests expected girJohan Dahlin2010-07-221-1/+2
| | | | To make the tests pass again
* [GIMarshalingTests] Add underscores to more variable namesdyfet@gnutelephony.org2010-07-203-45/+45
| | | | | | These may conflict. https://bugzilla.gnome.org/show_bug.cgi?id=624191
* Add annotation for g_dbus_proxy_new_syncTomeu Vizoso2010-07-151-0/+8
|
* Add annotations for g_variant_new_strv() and g_variant_get_strv()Tomeu Vizoso2010-07-151-0/+11
|
* Don't include machine-dependent integral types in the typelibColin Walters2010-07-092-22/+37
| | | | | | | | | | | | | | | | | | | | Previously we had both e.g. GI_TYPE_TAG_LONG and GI_TYPE_TAG_INT64, but in fact the typelib is already machine-specific, so it makes sense to just encode this as a fixed type. The .gir remains abstract. We also remove size_t from the typelib; one would never want to treat it differently than an integer. time_t is removed as well; while bindings like gjs had special handling to turn it into e.g. a JS Date object, I don't think we should encourage people to use these POSIX types in their API. Use GTimeVal or the like instead. Because the typelib is now really machine-specific, we need to remove the -expected.tgirs from git. (We could potentially add a check which wasn't just a literal diff later) https://bugzilla.gnome.org/show_bug.cgi?id=623774
* Fix up tests for last commitColin Walters2010-07-091-0/+12
|
* Add support for non-GObject fundamental objectsJohan Dahlin2010-07-093-0/+449
| | | | | | | | | | | | | | This patch adds support for instantiable fundamental object types, which are not GObject based. This is mostly interesting for being able to support GstMiniObject's which are extensivly used in GStreamer. Includes a big test case to the Everything module (inspired by GstMiniObject) which should be used by language bindings who wishes to test this functionallity. This patch increases the size of the typelib and breaks compatibility with older typelibs. https://bugzilla.gnome.org/show_bug.cgi?id=568913
* Move doc to toplevel element, write <any> for unknown containersColin Walters2010-07-082-110/+116
| | | | | | | | | Moving to <doc> allows us to better preserve whitespace. XML has no facility for whitespace-preserving attributes. Second, for arrays and lists, both types with unknown element_type can occur in the current scanner; it's least wrong if we write out an <any> type.
* [cairo-1.0] Add cairo_rectangle_int_tColin Walters2010-06-291-0/+1
|
* [cairo-1.0.gir] Add cairo_region_tColin Walters2010-06-291-0/+1
|
* Fix annotations for g_get_system_*Colin Walters2010-06-251-2/+2
|
* Clean up annotation parsing, don't try to parse invalid annotationsColin Walters2010-06-254-88/+103
| | | | | | | | | | | | | | | The old parser tried to parse: @foo: some text here (other text) Reject this. We strictly require another colon at the end to parse the text in between as (option) (other option). Futher ensure we only attempt to do option parse if we find something that matches the strict regexp ([A-Za-z]+). This could be tightened further. TODO: Have a warning for something that looks like an annotation, but isn't. https://bugzilla.gnome.org/show_bug.cgi?id=622659
* Fix make check broken by DanielleJohan Dahlin2010-06-221-0/+10
|
* [GIMarshallingTest] Add GByteArray test APIJohan Dahlin2010-06-223-0/+60
|
* Merge branch 'gvalue-tests'Danielle Madeley2010-06-222-0/+26
|\
| * Add tests to Everything for items stored in GValuesDanielle Madeley2010-06-222-0/+26
| |
* | GIRepository generation broke by code changesAlan Knowles2010-06-211-6/+7
| | | | | | | | Include all the Info files, and make sure girepository.h is first in the include order
* | [gir] Pass in --warn-all/error to our libsJohan Dahlin2010-06-171-0/+2
| | | | | | | | | | Pass in --warn-all/--warn-error to all the libraries that are under our control so we can dogfood.
* | Support introspectable=no attribute, add warnings frameworkColin Walters2010-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This work allows us to move closer to replacing gtk-doc, among other things. We add a generic attribute "introspectable", and inside the typelib compiler if we see "introspectable=no", we don't put it in the typelib. This replaces the hackish pre-filter for varargs with a much more generic mechanism. The varargs is now handled in the scanner, and we emit introspectable=no for them. Add generic metadata to Node with references to file/line/column, which currently comes from symbols. Add scanner options --warn-all and --warn-error. https://bugzilla.gnome.org/show_bug.cgi?id=621570
* | Update versionsColin Walters2010-06-1711-11/+11
| |
* | Revert "Support introspectable=no attribute, add warnings framework"Johan Dahlin2010-06-171-1/+1
|/ | | | This reverts commit 074192b89c6afcdd7f062f03989972e44334b8bf.
* Support introspectable=no attribute, add warnings frameworkColin Walters2010-06-161-1/+1
| | | | | | | | | | | | | | | | This work allows us to move closer to replacing gtk-doc, among other things. We add a generic attribute "introspectable", and inside the typelib compiler if we see "introspectable=no", we don't put it in the typelib. This replaces the hackish pre-filter for varargs with a much more generic mechanism. The varargs is now handled in the scanner, and we emit introspectable=no for them. Add generic metadata to Node with references to file/line/column, which currently comes from symbols. Add scanner options --Wall and --Werror.
* Apply annotations from invoker to vfuncColin Walters2010-06-161-1/+5
| | | | | | | | We typically expect people to annotate e.g. GList for virtuals on the invoker, not on the virtual slot, since the invoker feels like the public API. https://bugzilla.gnome.org/show_bug.cgi?id=621570
* Add some more Gio annotationsColin Walters2010-06-161-0/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=621570
* Support the (transfer) annotation for properties.Tomeu Vizoso2010-06-084-6/+89
| | | | | | | | | | | | * girepository/*: Add g_property_info_get_ownership_transfer() and write the transfer attribute of properties into the typelib. * giscanner/*: Parse the (transfer) annotation and write it into the .gir. * tools/generate.c: Read the transfer annotation for properties and write to the .tgir. https://bugzilla.gnome.org/show_bug.cgi?id=620484
* Annotate GVariant as a foreign structTomeu Vizoso2010-06-081-0/+5
|
* Do not include preprocessor flags into GLib_2_0_gir_CFLAGSAlexey Zakhlestin2010-06-041-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=606686
* Fix marshalling of GStrv.GOBJECT_INTROSPECTION_0_6_13Tomeu Vizoso2010-06-023-0/+125
| | | | | | | | | | | | | | | | | | * gir/gimarshallingtests.[hc]: Add a test for GStrv in function args and as struct fields. * girepository/giroffsets.c: Correctly compute the size of structs with array fields * girepository/girparser.c: Set is_pointer to FALSE for arrays with fixed size that are inside structs. * giscanner/glibtransformer.py: Special case GStrv as arrays of utf8. * giscanner/annotationparser.py: Make full transfer the default for arrays of char* returned by functions. https://bugzilla.gnome.org/show_bug.cgi?id=620170
* Fix the relative path that contains the girepositoryheadersTomeu Vizoso2010-06-011-1/+1
|
* Add Cursor record to xlib-2.0.girTomeu Vizoso2010-06-011-0/+1
|
* [girepository] Split out GIBaseInfoJohan Dahlin2010-05-311-1/+7
| | | | | | | | | Split out GIBaseInfo to a separate source file. Move out definitions to gibaseinfo.h/gitypelib.h/gitypes.h and girepository-private.h Install gibaseinfo.h/gitypelib.h and gitypes.h as well, but require users to include girepository.h
* [everything] Re-generate after doc changesJohan Dahlin2010-05-311-4/+2
| | | | | The gtk-doc parser is a big stricter now, which changed the weird comments written in everything.c
* [GIMarshallingTests] Fix incorrect array sizesColin Walters2010-05-271-7/+7
|
* Support (out caller-allocates)Colin Walters2010-05-263-153/+631
| | | | | | | | | | | | | | | | | | | | | People have wanted support for marking (out) on functions of the form: /** * clutter_color_from_pixel: * @pixel: A pixel * @color: (out): Color to initialize with value of @pixel */ void clutter_color_from_pixel (guint32 pixel, ClutterColor *color); Where the caller is supposed to have allocated the argument; the C function just initializes it. This patch adds support for this argument passing style to introspection. In this case, we see the (out), and notice that there's only a single indirection (*) on the argument, and assume that this means (out caller-allocates). https://bugzilla.gnome.org/show_bug.cgi?id=604749
* [glib] Skip g_date_to_struct_tm as skipJohan Dahlin2010-05-251-0/+6
|
* Add GInitiallyUnknowned subclass to Everything for testing floating referencesTomeu Vizoso2010-05-223-0/+72
|
* remove unnecessary $(srcdir)s from Makefile.amDan Winship2010-05-201-10/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=616425
* Take into account the underscore after the type name when checking if a ↵Tomeu Vizoso2010-05-193-0/+48
| | | | | | function is a method https://bugzilla.gnome.org/show_bug.cgi?id=617876
* Adds annotations to g_filter_(input/output)_stream_get_base_streamEduardo Lima Mitev2010-05-191-0/+12
| | | | Fixes bug 616893
* Add a basic gir for xrandrJohan Bilien2010-05-182-1/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=617334
* [everything] Remove test_callback_infiniteOwen W. Taylor2010-05-073-39/+0
| | | | | | | The 'infinite' value for callback scope was removed, so the test case for it needs to be removed as well. https://bugzilla.gnome.org/show_bug.cgi?id=618041
* [everything] Fix length annotationsOwen W. Taylor2010-05-072-4/+4
| | | | | | Length annotations take a parameter name not a parameter index. https://bugzilla.gnome.org/show_bug.cgi?id=618041
* Add GIMarshallingTests-1.0-expected.gir so we track changes in the scannerTomeu Vizoso2010-05-062-0/+3134
|
* Add test vfunc for testing out args in callbacksTomeu Vizoso2010-05-052-0/+28
|
* Add support for GArrays: add g_type_info_get_array_type() and properly scan ↵Tomeu Vizoso2010-05-042-0/+283
| | | | | | | | GArray args Based on a previous patch by C. Scott Ananian <cscott@litl.com> https://bugzilla.gnome.org/show_bug.cgi?id=581687
* Revert "Add support for GArrays: add g_type_info_get_array_type() and ↵Tomeu Vizoso2010-05-032-283/+0
| | | | | | properly scan GArray args" This reverts commit 87291e08b0fd34b62e1ad9811c174108b38311a9.
* Add some tests to Everything for testing callbacks as constructor argsTomeu Vizoso2010-05-033-0/+101
|
* Add support for GArrays: add g_type_info_get_array_type() and properly scan ↵Tomeu Vizoso2010-04-302-0/+283
| | | | | | | | GArray args Based on a previous patch by C. Scott Ananian <cscott@litl.com> https://bugzilla.gnome.org/show_bug.cgi?id=581687
* Keep valgrind happy in a testTomeu Vizoso2010-04-271-1/+1
|