<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gjs.git/gi/function.c, branch generalised-array-args</title>
<subtitle>gitlab.gnome.org: GNOME/gjs.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/'/>
<entry>
<title>Generalise array input arguments</title>
<updated>2010-02-16T08:44:49+00:00</updated>
<author>
<name>Chris Lord</name>
<email>chris@linux.intel.com</email>
</author>
<published>2010-02-16T08:44:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=8101b9281ddb8869954e3eb4d21522d2370156ed'/>
<id>8101b9281ddb8869954e3eb4d21522d2370156ed</id>
<content type='text'>
Patch by Johan Dahlin &lt;johan@gnome.org&gt;

Generalise array input arguments instead of special casing particular
array types. Based on a patch by Johan, updated to apply against trunk
and work with arrays of GValue.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patch by Johan Dahlin &lt;johan@gnome.org&gt;

Generalise array input arguments instead of special casing particular
array types. Based on a patch by Johan, updated to apply against trunk
and work with arrays of GValue.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow null/undefined to be passed in to callbacks</title>
<updated>2009-12-03T21:47:17+00:00</updated>
<author>
<name>Johan Dahlin</name>
<email>johan@gnome.org</email>
</author>
<published>2009-12-03T21:33:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=e2fe272a26e17a413b74178d48136be1108ff2a0'/>
<id>e2fe272a26e17a413b74178d48136be1108ff2a0</id>
<content type='text'>
Some functions do not require a callback to be passed in,
instead NULL is accepted, the same should be supported in gjs
by allowing null/undefined.

https://bugzilla.gnome.org/show_bug.cgi?id=603735
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some functions do not require a callback to be passed in,
instead NULL is accepted, the same should be supported in gjs
by allowing null/undefined.

https://bugzilla.gnome.org/show_bug.cgi?id=603735
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename the ffi closure function names</title>
<updated>2009-12-02T21:19:46+00:00</updated>
<author>
<name>Johan Dahlin</name>
<email>johan@gnome.org</email>
</author>
<published>2009-12-02T21:18:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=a14aa201198bcaa85e3d58582fb2d55ecebca3d3'/>
<id>a14aa201198bcaa85e3d58582fb2d55ecebca3d3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a bunch of compiler warnings</title>
<updated>2009-12-02T21:19:20+00:00</updated>
<author>
<name>Johan Dahlin</name>
<email>johan@gnome.org</email>
</author>
<published>2009-12-02T21:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=a1c7d0127a182dab1ec89799ebef987ec3f17f68'/>
<id>a1c7d0127a182dab1ec89799ebef987ec3f17f68</id>
<content type='text'>
Also use prepend instead of append and use GSList in
all places as we never need a double linked list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also use prepend instead of append and use GSList in
all places as we never need a double linked list.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a few comments explaining the tricky parts</title>
<updated>2009-12-02T21:17:32+00:00</updated>
<author>
<name>Johan Dahlin</name>
<email>johan@gnome.org</email>
</author>
<published>2009-12-02T21:17:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=b591d2f2469cd2987ae0f57f010a73d73d4f2e0a'/>
<id>b591d2f2469cd2987ae0f57f010a73d73d4f2e0a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Just add a comment instead of a warning</title>
<updated>2009-12-02T21:17:11+00:00</updated>
<author>
<name>Johan Dahlin</name>
<email>johan@gnome.org</email>
</author>
<published>2009-12-02T21:17:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=fdd79dba0071df2110c61fe2056b21b81c9befa5'/>
<id>fdd79dba0071df2110c61fe2056b21b81c9befa5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Support for callback functions</title>
<updated>2009-12-02T20:19:34+00:00</updated>
<author>
<name>Maxim Ermilov</name>
<email>zaspire@rambler.ru</email>
</author>
<published>2009-12-02T17:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=5231f84d62d48736f22dc97f1f8d5c5374fbef2e'/>
<id>5231f84d62d48736f22dc97f1f8d5c5374fbef2e</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=563025
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=563025
</pre>
</div>
</content>
</entry>
<entry>
<title>Support simple structures not registered as boxed</title>
<updated>2008-11-19T22:31:12+00:00</updated>
<author>
<name>Owen Taylor</name>
<email>otaylor@src.gnome.org</email>
</author>
<published>2008-11-19T22:31:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=c781c360f1d5615a21281b3732ea43c346310385'/>
<id>c781c360f1d5615a21281b3732ea43c346310385</id>
<content type='text'>
Allow creating a "Boxed" object for a simple structure that is not
registered as a GBoxed.

Renames:
  gjs_g_boxed_from_boxed() =&gt; gjs_c_struct_from_boxed()
  gjs_boxed_from_g_boxed() =&gt; gjs_boxed_from_c_struct()
  gjs_g_boxed_from_union() =&gt; gjs_c_struct_from_union()
  gjs_union_from_g_boxed() =&gt; gjs_union_from_c_struct()

Change from passing GType to _from_g_boxed() to passing
GI[Struct|Union]Info to _from_c_struct()

gi/boxed.c: Allow for g_registered_type_info_get_g_type() returning
 G_TYPE_NONE.

gi/union.c: Add check (for now) that the union type is registered as
 a GBoxed before registering the JS class.

gi/arg.c: Check whether the GIBaseInfo STRUCT/BOXED/UNION before
 getting the GType and making a decision based on that.

test/js/testEverythingEncapsulated.js: Add tests for simple structures

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

svn path=/trunk/; revision=118
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow creating a "Boxed" object for a simple structure that is not
registered as a GBoxed.

Renames:
  gjs_g_boxed_from_boxed() =&gt; gjs_c_struct_from_boxed()
  gjs_boxed_from_g_boxed() =&gt; gjs_boxed_from_c_struct()
  gjs_g_boxed_from_union() =&gt; gjs_c_struct_from_union()
  gjs_union_from_g_boxed() =&gt; gjs_union_from_c_struct()

Change from passing GType to _from_g_boxed() to passing
GI[Struct|Union]Info to _from_c_struct()

gi/boxed.c: Allow for g_registered_type_info_get_g_type() returning
 G_TYPE_NONE.

gi/union.c: Add check (for now) that the union type is registered as
 a GBoxed before registering the JS class.

gi/arg.c: Check whether the GIBaseInfo STRUCT/BOXED/UNION before
 getting the GType and making a decision based on that.

test/js/testEverythingEncapsulated.js: Add tests for simple structures

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

svn path=/trunk/; revision=118
</pre>
</div>
</content>
</entry>
<entry>
<title>Generalize argument functions to allow using for fields</title>
<updated>2008-11-19T22:30:29+00:00</updated>
<author>
<name>Owen Taylor</name>
<email>otaylor@src.gnome.org</email>
</author>
<published>2008-11-19T22:30:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=63a9b73f472d7264d3be5f89490cca4ad49afe45'/>
<id>63a9b73f472d7264d3be5f89490cca4ad49afe45</id>
<content type='text'>
This patch slightly modifies the functions in arg.h to allow using
for field storage as well. It does a general rename of ..._g_arg_...
to ..._g_argument_... to make it clear that what's being referred
to is GArgument not GIArgInfo.

gjs_value_to_g_arg_with_type_info() is exposed and renamed to
gjs_value_to_g_argument and the boolean argument is changed to an
enum (should improve the error messages a bit for existing uses.)

gjs_value_to_g_arg is renamed to gjs_value_to_arg() since it *is*
specific to GIArgInfo.

svn path=/trunk/; revision=111
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch slightly modifies the functions in arg.h to allow using
for field storage as well. It does a general rename of ..._g_arg_...
to ..._g_argument_... to make it clear that what's being referred
to is GArgument not GIArgInfo.

gjs_value_to_g_arg_with_type_info() is exposed and renamed to
gjs_value_to_g_argument and the boolean argument is changed to an
enum (should improve the error messages a bit for existing uses.)

gjs_value_to_g_arg is renamed to gjs_value_to_arg() since it *is*
specific to GIArgInfo.

svn path=/trunk/; revision=111
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 560670 – Turn on compilation warnings</title>
<updated>2008-11-13T21:45:57+00:00</updated>
<author>
<name>Owen Taylor</name>
<email>otaylor@src.gnome.org</email>
</author>
<published>2008-11-13T21:45:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gjs.git/commit/?id=58c9c303bca9180dda4dcaf21287e5c732733253'/>
<id>58c9c303bca9180dda4dcaf21287e5c732733253</id>
<content type='text'>
configure.ac: Add -Wall and selected other warnings

gjs/importer.c: Pass the right value to finish_import()
gjs/jsapi-util.c: Reorder includes so that __GJS_UTIL_LOG_H__
 gets defined before jsapi-util.h is included.

gi/function.c: Initialize a variable to quiet GCC
gi/arg.c: Remove unused variables, fix missing case labels and
 return value in gjs_g_arg_release_in_arg()

svn path=/trunk/; revision=105
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
configure.ac: Add -Wall and selected other warnings

gjs/importer.c: Pass the right value to finish_import()
gjs/jsapi-util.c: Reorder includes so that __GJS_UTIL_LOG_H__
 gets defined before jsapi-util.h is included.

gi/function.c: Initialize a variable to quiet GCC
gi/arg.c: Remove unused variables, fix missing case labels and
 return value in gjs_g_arg_release_in_arg()

svn path=/trunk/; revision=105
</pre>
</div>
</content>
</entry>
</feed>
