platform/upstream/gobject-introspection.git
14 years ago[info] Fix-up prototype indentation
Johan Dahlin [Mon, 31 May 2010 00:55:45 +0000 (21:55 -0300)]
[info] Fix-up prototype indentation

14 years ago[build] Remove gcov support
Johan Dahlin [Fri, 28 May 2010 23:49:54 +0000 (20:49 -0300)]
[build] Remove gcov support

It's been broken for some time, remove it instead of letting
it bitrot.

14 years ago[doc] Document GIErrorDomainInfo methods
Johan Dahlin [Fri, 28 May 2010 23:49:39 +0000 (20:49 -0300)]
[doc] Document GIErrorDomainInfo methods

14 years ago[docs] Link to top of pages
Johan Dahlin [Fri, 28 May 2010 23:49:26 +0000 (20:49 -0300)]
[docs] Link to top of pages

14 years ago[GITypeInfo] Document and check type
Johan Dahlin [Fri, 28 May 2010 16:47:48 +0000 (13:47 -0300)]
[GITypeInfo] Document and check type

Document GITypeInfo and check the info type in all functions.

14 years agoRemove leftover function
Johan Dahlin [Fri, 28 May 2010 11:49:49 +0000 (08:49 -0300)]
Remove leftover function

14 years ago[girepository] Check types function/callable/arg
Johan Dahlin [Fri, 28 May 2010 02:24:42 +0000 (23:24 -0300)]
[girepository] Check types function/callable/arg

Check the info types for functions, callable and args.
Verifies that the right type is sent in

14 years ago[girepository] Add macros for checking struct type
Johan Dahlin [Fri, 28 May 2010 02:18:58 +0000 (23:18 -0300)]
[girepository] Add macros for checking struct type

Add macros for checking the sub-struct type. These are
similar to the standard GObject macros.

14 years ago[docs] SignalInfo is a sub-struct of CallableInfo
Johan Dahlin [Fri, 28 May 2010 02:17:58 +0000 (23:17 -0300)]
[docs] SignalInfo is a sub-struct of CallableInfo

14 years ago[GIMarshallingTests] Fix incorrect array sizes
Colin Walters [Thu, 27 May 2010 18:23:17 +0000 (14:23 -0400)]
[GIMarshallingTests] Fix incorrect array sizes

14 years agoRemove g_arg_info_is_dipper from documentation
Johan Dahlin [Thu, 27 May 2010 13:18:56 +0000 (10:18 -0300)]
Remove g_arg_info_is_dipper from documentation

14 years agoAdd type annotation for properties
Johan Dahlin [Mon, 10 May 2010 22:00:14 +0000 (19:00 -0300)]
Add type annotation for properties

Add type annotation syntax for GObject properties. This makes
it possible to override the type of a property. For instance,
this will allow function pointers with a G_TYPE_POINTER type set
to be used from a language binding which reads the typelib information
in addition g_object_class_find_property.

https://bugzilla.gnome.org/show_bug.cgi?id=618318

14 years ago[g-ir-generate] Write out array type
Johan Dahlin [Thu, 27 May 2010 03:17:56 +0000 (00:17 -0300)]
[g-ir-generate] Write out array type

For GLib arrays, write out the array type to the tgir

14 years ago[scanner] Element-type annotation for GArray types
Johan Dahlin [Thu, 27 May 2010 03:08:20 +0000 (00:08 -0300)]
[scanner] Element-type annotation for GArray types

Add support for (element-type) annotations for G*Array
types.

https://bugzilla.gnome.org/show_bug.cgi?id=619545

14 years ago[annotationparser] Avoid a couple of \
Johan Dahlin [Thu, 27 May 2010 03:04:28 +0000 (00:04 -0300)]
[annotationparser] Avoid a couple of \

14 years agoRemove g_arg_info_is_dipper from public API
Colin Walters [Wed, 26 May 2010 22:14:39 +0000 (18:14 -0400)]
Remove g_arg_info_is_dipper from public API

It wasn't useful, the new g_arg_info_is_caller_allocates is.

14 years ago[girparser] Don't hard require caller-allocates since it breaks parsing
Colin Walters [Wed, 26 May 2010 17:52:36 +0000 (13:52 -0400)]
[girparser] Don't hard require caller-allocates since it breaks parsing

We need to support parsing older .girs for inclusion purposes.  (But
we should probably have an explicit .gir version, and require the
attribute for newer versions)

14 years ago[common.mk] Add builddir,srcdir and top_srcdir/gir
Johan Dahlin [Wed, 26 May 2010 17:05:19 +0000 (14:05 -0300)]
[common.mk] Add builddir,srcdir and top_srcdir/gir

They are now required with the updated Makefile.introspection rules,
as the path to cairo-1.0.gir is no longer absolute we will have to add
the src manually as it's references when srcdir != builddir, for instance
in make distcheck.

14 years ago[common.mk] Clean up, avoid excessive variables
Johan Dahlin [Wed, 26 May 2010 17:04:37 +0000 (14:04 -0300)]
[common.mk] Clean up, avoid excessive variables

Just define the ones we need, that are actually used by
the other makefiles.

14 years agoSupport (out caller-allocates)
Colin Walters [Wed, 16 Dec 2009 16:47:19 +0000 (11:47 -0500)]
Support (out caller-allocates)

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

14 years ago[scanner] Support unsigned long/short int
Alan Knowles [Sat, 3 Apr 2010 10:09:31 +0000 (18:09 +0800)]
[scanner] Support unsigned long/short int

14 years ago[sourcescanner] Support for line numbers on Symbol
Alan Knowles [Sun, 4 Apr 2010 08:52:24 +0000 (16:52 +0800)]
[sourcescanner] Support for line numbers on Symbol

Add line numbers to symbols, which can be useful
in later stages of the scanner.

14 years ago[glib] Skip g_date_to_struct_tm as skip
Johan Dahlin [Tue, 25 May 2010 17:02:17 +0000 (14:02 -0300)]
[glib] Skip g_date_to_struct_tm as skip

14 years ago[docs] Add a struct hierarchy page
Johan Dahlin [Tue, 25 May 2010 12:49:36 +0000 (09:49 -0300)]
[docs] Add a struct hierarchy page

14 years agoPost-release version bump
Colin Walters [Mon, 24 May 2010 21:22:36 +0000 (17:22 -0400)]
Post-release version bump

14 years agoAdd support for the 'foreign' annotation to g-i-scanner GOBJECT_INTROSPECTION_0_6_12
Tomeu Vizoso [Sun, 23 May 2010 18:38:55 +0000 (20:38 +0200)]
Add support for the 'foreign' annotation to g-i-scanner

https://bugzilla.gnome.org/show_bug.cgi?id=619450

14 years agoAdd GInitiallyUnknowned subclass to Everything for testing floating references
Tomeu Vizoso [Sat, 22 May 2010 12:08:45 +0000 (14:08 +0200)]
Add GInitiallyUnknowned subclass to Everything for testing floating references

14 years ago[docs] Document GICallableInfo and GIArgInfo
Johan Dahlin [Fri, 21 May 2010 21:30:58 +0000 (18:30 -0300)]
[docs] Document GICallableInfo and GIArgInfo

Make docs more consistent and also fix a couple of broken links

14 years agoremove unnecessary $(srcdir)s from Makefile.am
Dan Winship [Thu, 20 May 2010 14:29:32 +0000 (10:29 -0400)]
remove unnecessary $(srcdir)s from Makefile.am

https://bugzilla.gnome.org/show_bug.cgi?id=616425

14 years agoMakefile.introspection: use $^, simplifying non-srcdir builds
Dan Winship [Wed, 21 Apr 2010 18:55:17 +0000 (14:55 -0400)]
Makefile.introspection: use $^, simplifying non-srcdir builds

In the .gir-building rule, use "$^" to refer to the source files,
since that automatically looks in both $(srcdir) and $(builddir). This
is particularly important since certain generated files will be in
$(builddir) when building from git, but in $(srcdir) when building
from tarballs

If you were previously prefixing $(srcdir) to the Foo_gir_FILES
members by hand, you should stop now.

(Also, removed the dependencies on $(INTROSPECTION_SCANNER) and
$(INTROSPECTION_COMPILER) for the .gir/.typelib rules, since the
scanner one was broken anyway, and we don't have that kind of
dependency for other rules (eg, making .o files depend on
/usr/bin/gcc).)

https://bugzilla.gnome.org/show_bug.cgi?id=616425

14 years ago[girepository] Use g_slice
Johan Dahlin [Thu, 20 May 2010 14:33:49 +0000 (11:33 -0300)]
[girepository] Use g_slice

Use g_slice to allocate instead of g_new(x, 1); It uses a memory
pool internally and should be faster, especially for GBaseInfo/GRealInfo,
structs which are tiny.

14 years ago[docs] Make gtk-doc language consistent.
Johan Dahlin [Wed, 19 May 2010 23:57:19 +0000 (20:57 -0300)]
[docs] Make gtk-doc language consistent.

Make the language we use in the gtk-doc comments
more consistent. Add transfer annotation for all functions
returning a struct and mention how they should be freed.

14 years ago[docs] Reorganize sections
Johan Dahlin [Wed, 19 May 2010 23:56:18 +0000 (20:56 -0300)]
[docs] Reorganize sections

Mark macros as standard and a couple of structs
as private. Remove multiple defintion of GITypelib to reduce
gtk-doc spew.

14 years ago[GIFunctionInfo] Document struct and functions
Johan Dahlin [Wed, 19 May 2010 16:54:26 +0000 (13:54 -0300)]
[GIFunctionInfo] Document struct and functions

14 years ago[docs] Reference g_module_open instead of dlopen
Johan Dahlin [Wed, 19 May 2010 16:53:48 +0000 (13:53 -0300)]
[docs] Reference g_module_open instead of dlopen

dlopen() is not cross platform, it's better to mention
g_module_open everywhere as that's actually what we call internally.

14 years ago[docs] Remove multiple GIFunctionInfo link
Johan Dahlin [Wed, 19 May 2010 16:53:17 +0000 (13:53 -0300)]
[docs] Remove multiple GIFunctionInfo link

14 years ago[docs] Remove title from gi-sections.txt
Johan Dahlin [Wed, 19 May 2010 16:52:50 +0000 (13:52 -0300)]
[docs] Remove title from gi-sections.txt

They will be defined in inline gtk-doc comments.

14 years agoTake into account the underscore after the type name when checking if a function...
Tomeu Vizoso [Thu, 6 May 2010 09:57:37 +0000 (11:57 +0200)]
Take into account the underscore after the type name when checking if a function is a method

https://bugzilla.gnome.org/show_bug.cgi?id=617876

14 years agoAdds annotations to g_filter_(input/output)_stream_get_base_stream
Eduardo Lima Mitev [Tue, 27 Apr 2010 16:04:53 +0000 (18:04 +0200)]
Adds annotations to g_filter_(input/output)_stream_get_base_stream

Fixes bug 616893

14 years agogirparser: backtrace_stderr: fix int/ssize_t format mismatch
Simon McVittie [Wed, 19 May 2010 15:17:06 +0000 (16:17 +0100)]
girparser: backtrace_stderr: fix int/ssize_t format mismatch

backtrace() is defined in terms of int, which differs from ssize_t on
x86-64, and @size is also an int.

14 years ago.gitignore: ignore xrandr-1.3.typelib
Simon McVittie [Wed, 19 May 2010 15:15:46 +0000 (16:15 +0100)]
.gitignore: ignore xrandr-1.3.typelib

14 years agoPost release version bump
Johan Dahlin [Wed, 19 May 2010 13:10:27 +0000 (10:10 -0300)]
Post release version bump

14 years agoBump version to 0.6.11 GOBJECT_INTROSPECTION_0_6_11
Johan Dahlin [Wed, 19 May 2010 12:57:51 +0000 (09:57 -0300)]
Bump version to 0.6.11

14 years ago[build] Require gtk-doc at distcheck time
Johan Dahlin [Wed, 19 May 2010 12:53:50 +0000 (09:53 -0300)]
[build] Require gtk-doc at distcheck time

This should make sure that new tarballs contain the reference
documentation.

https://bugzilla.gnome.org/show_bug.cgi?id=618651

14 years agoAdd uid_t, gid_t, dev_t to integral type conversions
Colin Walters [Tue, 18 May 2010 19:27:49 +0000 (15:27 -0400)]
Add uid_t, gid_t, dev_t to integral type conversions

Continuing where we were going with pid_t, define a few more POSIX
types by converting them to their fundamental integers.  See
commentary in patch for more explanation on rationale.

https://bugzilla.gnome.org/show_bug.cgi?id=618778

14 years ago[GIBaseInfo] Document all functions
Johan Dahlin [Wed, 19 May 2010 02:40:24 +0000 (23:40 -0300)]
[GIBaseInfo] Document all functions

14 years ago[docs] Reorganize structs into chapters
Johan Dahlin [Tue, 18 May 2010 21:39:25 +0000 (18:39 -0300)]
[docs] Reorganize structs into chapters

Instead of displaying all structures and methods
in girepository.h on one page, split them out to a
bunch of pages.

14 years ago[girepository] Document most of the structs
Johan Dahlin [Tue, 18 May 2010 21:10:51 +0000 (18:10 -0300)]
[girepository] Document most of the structs

14 years ago[doc] Add missing symbols
Johan Dahlin [Tue, 18 May 2010 16:39:54 +0000 (13:39 -0300)]
[doc] Add missing symbols

14 years ago[doc Makefile] Remove html/ xml/ and tmpl/
Johan Dahlin [Tue, 18 May 2010 16:39:25 +0000 (13:39 -0300)]
[doc Makefile] Remove html/ xml/ and tmpl/

When invoking make clean, remove the directories with
generated documentation

14 years ago[doc] Update to work with latest gtk-doc release
Johan Dahlin [Tue, 18 May 2010 16:39:00 +0000 (13:39 -0300)]
[doc] Update to work with latest gtk-doc release

Use xi:includes instead of sgml entities

14 years ago[doc] Remove private API from docs
Johan Dahlin [Tue, 18 May 2010 16:38:37 +0000 (13:38 -0300)]
[doc] Remove private API from docs

14 years ago[girepository] Update gtk-doc syntax
Johan Dahlin [Tue, 18 May 2010 16:37:51 +0000 (13:37 -0300)]
[girepository] Update gtk-doc syntax

Update the gtk-doc syntax to remove a couple of warnings

14 years agoUpdate .gitignore
Johan Dahlin [Tue, 18 May 2010 16:37:35 +0000 (13:37 -0300)]
Update .gitignore

14 years ago[common.mk] Remove broken pythonpath
Johan Dahlin [Tue, 18 May 2010 16:37:06 +0000 (13:37 -0300)]
[common.mk] Remove broken pythonpath

It expands to YTHONPATH and could never have worked.

14 years agoAdd a basic gir for xrandr
Johan Bilien [Fri, 30 Apr 2010 22:07:46 +0000 (18:07 -0400)]
Add a basic gir for xrandr

https://bugzilla.gnome.org/show_bug.cgi?id=617334

14 years ago[Makefile.introspection] Do not use _GIRDIR
Johan Dahlin [Mon, 17 May 2010 19:11:48 +0000 (16:11 -0300)]
[Makefile.introspection] Do not use _GIRDIR

Instead use the path from configure in the example.

14 years ago[everything] Remove test_callback_infinite
Owen W. Taylor [Fri, 7 May 2010 19:22:08 +0000 (15:22 -0400)]
[everything] Remove test_callback_infinite

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

14 years ago[everything] Fix length annotations
Owen W. Taylor [Fri, 7 May 2010 19:19:37 +0000 (15:19 -0400)]
[everything] Fix length annotations

Length annotations take a parameter name not a parameter index.

https://bugzilla.gnome.org/show_bug.cgi?id=618041

14 years agoFix parameter ordering in error message
Owen W. Taylor [Fri, 7 May 2010 18:08:22 +0000 (14:08 -0400)]
Fix parameter ordering in error message

The function name and parameter name were backwards when warning
about bad parameter references.

14 years agoValidate parameter references
Owen W. Taylor [Thu, 6 May 2010 22:49:28 +0000 (18:49 -0400)]
Validate parameter references

When an annotation references another parameter, check that that
parameter actually exists.

Add a comment to the handling of (closure) for callbacks to explain
why we don't need the same handling there despite the use of
get_parameter_index().

https://bugzilla.gnome.org/show_bug.cgi?id=617978

14 years agoValidate scope annotation values
Owen W. Taylor [Thu, 6 May 2010 22:15:37 +0000 (18:15 -0400)]
Validate scope annotation values

Make sure that the value specified for scope in a callback
annotation is one of the legal values.

https://bugzilla.gnome.org/show_bug.cgi?id=617978

14 years agoUse -1 not None for closure/destroy indices
Owen W. Taylor [Thu, 6 May 2010 22:02:22 +0000 (18:02 -0400)]
Use -1 not None for closure/destroy indices

Don't assign None to closure and destroy indices in case of
collision, they are supposed to be numeric.

https://bugzilla.gnome.org/show_bug.cgi?id=617978

14 years agoAdd GIMarshallingTests-1.0-expected.gir so we track changes in the scanner
Tomeu Vizoso [Thu, 6 May 2010 08:47:14 +0000 (10:47 +0200)]
Add GIMarshallingTests-1.0-expected.gir so we track changes in the scanner

14 years agoAdd test vfunc for testing out args in callbacks
Tomeu Vizoso [Wed, 5 May 2010 15:59:22 +0000 (17:59 +0200)]
Add test vfunc for testing out args in callbacks

14 years agoAdd support for GArrays: add g_type_info_get_array_type() and properly scan GArray...
Tomeu Vizoso [Tue, 4 May 2010 14:57:51 +0000 (16:57 +0200)]
Add support for GArrays: add g_type_info_get_array_type() and properly scan GArray args

Based on a previous patch by C. Scott Ananian <cscott@litl.com>

https://bugzilla.gnome.org/show_bug.cgi?id=581687

14 years agoRevert "Add support for GArrays: add g_type_info_get_array_type() and properly scan...
Tomeu Vizoso [Mon, 3 May 2010 17:17:00 +0000 (19:17 +0200)]
Revert "Add support for GArrays: add g_type_info_get_array_type() and properly scan GArray args"

This reverts commit 87291e08b0fd34b62e1ad9811c174108b38311a9.

14 years agoAdd some tests to Everything for testing callbacks as constructor args
Tomeu Vizoso [Mon, 3 May 2010 17:15:54 +0000 (19:15 +0200)]
Add some tests to Everything for testing callbacks as constructor args

14 years agoAdd support for GArrays: add g_type_info_get_array_type() and properly scan GArray...
Tomeu Vizoso [Fri, 30 Apr 2010 16:15:23 +0000 (18:15 +0200)]
Add support for GArrays: add g_type_info_get_array_type() and properly scan GArray args

Based on a previous patch by C. Scott Ananian <cscott@litl.com>

https://bugzilla.gnome.org/show_bug.cgi?id=581687

14 years ago[annotationparser] Disable warning
Johan Dahlin [Wed, 28 Apr 2010 18:25:53 +0000 (15:25 -0300)]
[annotationparser] Disable warning

14 years agoWarn about annotations for unknown args
Tomeu Vizoso [Wed, 28 Apr 2010 12:32:14 +0000 (14:32 +0200)]
Warn about annotations for unknown args

https://bugzilla.gnome.org/show_bug.cgi?id=615890

14 years agoKeep valgrind happy in a test
Tomeu Vizoso [Tue, 27 Apr 2010 13:15:10 +0000 (15:15 +0200)]
Keep valgrind happy in a test

14 years agoAdd test for virtual method with a default implementation
Tomeu Vizoso [Tue, 27 Apr 2010 08:22:33 +0000 (10:22 +0200)]
Add test for virtual method with a default implementation

14 years ago[glib] make g_file_set_contents() take uint8*, not utf8
Dan Winship [Wed, 14 Apr 2010 18:16:44 +0000 (14:16 -0400)]
[glib] make g_file_set_contents() take uint8*, not utf8

(We ought to do this for g_file_get_contents() as well, but that would
be inconvenient for gjs at the moment, so I'm not.)

https://bugzilla.gnome.org/show_bug.cgi?id=614974

14 years agoNegative test case for bad (out) case, not setting the *out_val in a (transfer full...
Zach Goldberg [Wed, 21 Apr 2010 03:56:44 +0000 (23:56 -0400)]
Negative test case for bad (out) case, not setting the *out_val in a (transfer full) case

https://bugzilla.gnome.org/show_bug.cgi?id=616358

14 years ago* docs/g-ir-scanner.1: Man page for g-ir-scanner(1) had long options with three dashe...
Saleem Ansari [Mon, 26 Apr 2010 11:12:11 +0000 (16:42 +0530)]
* docs/g-ir-scanner.1: Man page for g-ir-scanner(1) had long options with three dashes, changed to two dashes.

https://bugzilla.gnome.org/show_bug.cgi?id=616837

14 years agoAdd tests for unions
Tomeu Vizoso [Fri, 23 Apr 2010 14:32:08 +0000 (16:32 +0200)]
Add tests for unions

14 years agoAdd tests for non-gtype Enum
Tomeu Vizoso [Thu, 22 Apr 2010 13:11:29 +0000 (15:11 +0200)]
Add tests for non-gtype Enum

14 years agoUpdate gir/Everything-1.0-expected.gir
Tomeu Vizoso [Thu, 22 Apr 2010 13:09:55 +0000 (15:09 +0200)]
Update gir/Everything-1.0-expected.gir

14 years agoAdd tests for GAsyncReadyCallback
Tomeu Vizoso [Thu, 22 Apr 2010 12:57:35 +0000 (14:57 +0200)]
Add tests for GAsyncReadyCallback

14 years agoAdd new tests for multiple callback calls during function invokation for scope call
Zach Goldberg [Wed, 21 Apr 2010 02:34:15 +0000 (22:34 -0400)]
Add new tests for multiple callback calls during function invokation for scope call

https://bugzilla.gnome.org/show_bug.cgi?id=616354

14 years ago[everything] Depend on cairo properly
Johan Dahlin [Wed, 21 Apr 2010 02:04:47 +0000 (23:04 -0300)]
[everything] Depend on cairo properly

Don't try to build the everything library nor the gir if we
can't find cairo. Pass in the right flags so it can be built
when cairo is not in the same prefix as the rest of the dependencies.

14 years agoAdd missing build dependency for GIMarshallingTests on GObject-2.0.gir
Colin Walters [Sun, 18 Apr 2010 19:55:34 +0000 (15:55 -0400)]
Add missing build dependency for GIMarshallingTests on GObject-2.0.gir

Also consistently specify --add-include-path.

https://bugzilla.gnome.org/show_bug.cgi?id=616126

14 years agoAdd --disable-tests configure flag
Colin Walters [Sun, 18 Apr 2010 19:46:38 +0000 (15:46 -0400)]
Add --disable-tests configure flag

This allows us to not hard depend on cairo.

14 years agoUpdate Everything-1.0-expected.gir for recent changes GOBJECT_INTROSPECTION_0_6_10
Colin Walters [Sun, 18 Apr 2010 18:11:43 +0000 (14:11 -0400)]
Update Everything-1.0-expected.gir for recent changes

14 years agoAdd tests for vfuncs in classes
Tomeu Vizoso [Sun, 18 Apr 2010 14:26:29 +0000 (10:26 -0400)]
Add tests for vfuncs in classes

14 years agoAdd tests for vfuncs in interfaces
Tomeu Vizoso [Sat, 17 Apr 2010 22:27:57 +0000 (18:27 -0400)]
Add tests for vfuncs in interfaces

14 years agoAdd a bunch of new tests for nullable args in Everything module
Zach Goldberg [Sat, 17 Apr 2010 17:37:54 +0000 (13:37 -0400)]
Add a bunch of new tests for nullable args in Everything module

https://bugzilla.gnome.org/show_bug.cgi?id=616039

14 years agoUpdate tests for new fields in Everything module
Zach Goldberg [Sat, 17 Apr 2010 16:02:25 +0000 (12:02 -0400)]
Update tests for new fields in Everything module

14 years agoUse a pointer to a known type as a member of GIMarshallingTestsNotSimpleStruct
Tomeu Vizoso [Fri, 16 Apr 2010 18:34:50 +0000 (14:34 -0400)]
Use a pointer to a known type as a member of GIMarshallingTestsNotSimpleStruct

14 years agoAdd a simple callback type which has no arguments or return values
Zach Goldberg [Thu, 15 Apr 2010 21:01:11 +0000 (17:01 -0400)]
Add a simple callback type which has no arguments or return values

https://bugzilla.gnome.org/show_bug.cgi?id=615887

14 years agoAdd foreign struct funcs to Everything
Tomeu Vizoso [Thu, 15 Apr 2010 21:44:42 +0000 (17:44 -0400)]
Add foreign struct funcs to Everything

https://bugzilla.gnome.org/show_bug.cgi?id=615773

14 years agoAdd *~ to .gitignore
Tomeu Vizoso [Wed, 14 Apr 2010 18:39:15 +0000 (14:39 -0400)]
Add *~ to .gitignore

14 years agoIf needed, convert from camelcase to underscores when stripping the prefix of constants
Tomeu Vizoso [Tue, 13 Apr 2010 22:56:34 +0000 (18:56 -0400)]
If needed, convert from camelcase to underscores when stripping the prefix of constants

https://bugzilla.gnome.org/show_bug.cgi?id=615694

14 years agoAdd GIMarshallingTests typelib
Tomeu Vizoso [Tue, 13 Apr 2010 22:58:34 +0000 (18:58 -0400)]
Add GIMarshallingTests typelib

Fixes #615299

14 years agoUpdate Everything-1.0-expected.gir
Tomeu Vizoso [Tue, 13 Apr 2010 22:46:57 +0000 (18:46 -0400)]
Update Everything-1.0-expected.gir

14 years agoAssert input values in Everything funcs
Tomeu Vizoso [Fri, 9 Apr 2010 14:10:34 +0000 (16:10 +0200)]
Assert input values in Everything funcs

14 years agoCorrectly use ffi_closure_alloc(), fixing mmap permissions error
Owen W. Taylor [Wed, 7 Apr 2010 21:48:52 +0000 (17:48 -0400)]
Correctly use ffi_closure_alloc(), fixing mmap permissions error

This restores the reverted-commit ed8634d:

    Author: Dan Winship <danw@gnome.org>
    Date:   Mon Apr 5 14:05:52 2010 -0400

    g_callable_info_prepare_closure: handle mmap permissions error

    When SELinux or similar is active, a process may not be able to mmap()
    a segment that is both writable and executable, which would causing
    g_callable_info_prepare_closure() to fail. Libffi has a workaround for
    this problem though (it maps the same non-anonymous region twice, once
    writable and once executable, and returns two separate pointers to
    it), so use that.

But with an added fix, when using ffi_closure_alloc(), we need to use
ffi_prep_closure_loc() so we can pass in the executable address of the
trampoline separately from the writable address, rather than the
deprecated ffi_prep_closure().

https://bugzilla.gnome.org/show_bug.cgi?id=615105

14 years agoRevert "g_callable_info_prepare_closure: handle mmap permissions error"
Colin Walters [Wed, 7 Apr 2010 19:20:48 +0000 (15:20 -0400)]
Revert "g_callable_info_prepare_closure: handle mmap permissions error"

This reverts commit ed8634ddf73a56cb1935fd87254b3c6c04352893.

This commit caused crashes in gjs/gnome-shell, which we're still trying
to track down.  See: http://bugzilla.gnome.org/615078

14 years ago[glib] Add GKeyFile annotations
Johan Dahlin [Wed, 7 Apr 2010 15:19:01 +0000 (12:19 -0300)]
[glib] Add GKeyFile annotations