gobject-introspection r102 - in trunk: . src
- From: robtaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r102 - in trunk: . src
- Date: Mon, 4 Feb 2008 17:09:01 +0000 (GMT)
Author: robtaylor
Date: Mon Feb 4 17:09:01 2008
New Revision: 102
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=102&view=rev
Log:
2008-02-04 Rob Taylor <robtaylor floopily org>
* src/ginfo.c:
Add some documentation for GICallableInfo
Modified:
trunk/ChangeLog
trunk/src/ginfo.c
Modified: trunk/src/ginfo.c
==============================================================================
--- trunk/src/ginfo.c (original)
+++ trunk/src/ginfo.c Mon Feb 4 17:09:01 2008
@@ -539,6 +539,16 @@
type->reserved == 0 ? offset : type->offset);
}
+/**
+ * g_callable_info_get_return_type:
+ * @info: a #GICallableInfo
+ *
+ * Get the return type of a callable item as
+ * a #GITypeInfo
+ *
+ * Returns: a #GITypeInfo idexing the TypeBlob for the
+ * return type of #info
+ */
GITypeInfo *
g_callable_info_get_return_type (GICallableInfo *info)
{
@@ -550,6 +560,14 @@
return g_type_info_new (base, base->metadata, offset);
}
+/**
+ * g_callable_info_may_return_null:
+ * @info: a #GICallableInfo
+ *
+ * See if a callable could return NULL.
+ *
+ * Returns: TRUE if callable could return NULL
+ */
gboolean
g_callable_info_may_return_null (GICallableInfo *info)
{
@@ -559,7 +577,16 @@
return blob->may_return_null;
}
-GITransfer
+/**
+ * g_callable_info_get_caller_owns:
+ * @info: a #GICallableInfo
+ *
+ * See whether the caller owns the return value
+ * of this callable.
+ *
+ * Returns: TRUE if the caller owns the return value, FALSE otherwise.
+ */
+GITransfer
g_callable_info_get_caller_owns (GICallableInfo *info)
{
GIBaseInfo *base = (GIBaseInfo *)info;
@@ -573,6 +600,14 @@
return GI_TRANSFER_NOTHING;
}
+/**
+ * g_callable_info_get_n_args:
+ * @info: a #GICallableInfo
+ *
+ * Get the number of arguments (both IN and OUT) for this callable.
+ *
+ * Returns: The number of arguments this callable expects.
+ */
gint
g_callable_info_get_n_args (GICallableInfo *info)
{
@@ -586,6 +621,14 @@
return blob->n_arguments;
}
+/**
+ * g_callable_info_get_arg:
+ * @info: a #GICallableInfo
+ *
+ * Get information about a particular argument of this callable.
+ *
+ * Returns: A #GIArgInfo indexing the metadata on the given argument.
+ */
GIArgInfo *
g_callable_info_get_arg (GICallableInfo *info,
gint n)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]