G-Golf GObject Introspetion Utilities low level API.
gi-pointer-new
gi-pointer-inc
gi-attribute-iter-new
with-gerror
gi->scm
gi-boolean->scm
gi-string->scm
gi-n-string->scm
gi-strings->scm
gi-csv-string->scm
gi-pointer->scm
gi-n-pointer->scm
gi-pointers->scm
gi-n-gtype->scm
gi-glist->scm
gi-gslist->scm
scm->gi
scm->gi-boolean
scm->gi-string
scm->gi-n-string
scm->gi-strings
scm->gi-pointer
scm->gi-n-pointer
scm->gi-pointers
scm->gi-n-gtype
scm->gi-gslist
G-Golf GObject Introspection utilities low level API.
Returns a newly allocated (Glib) pointer.
Returns a foreign pointer object pointing to the address of pointer increased by offset.
Returns a pointer.
Creates and returns a foreign pointer to a C struct for a
GIAttributeIter
(a C struct containg four pointers, initialized
to %null-pointer
).
Returns the result of the execution of body, or raises an exception.
var must be an identifier. Evaluate body in a lexical
environment where var is bound to a pointer to a newly allocated
(and ‘empty’) GError
. var will always be freed. If no
exception is raised, the result of the execution of body is
returned.
Returns the scheme representation of value.
The type, a symbol name (also called a type tag
or just a
tag
in the GI
terminology) supported values are:
'boolean
Calls gi-boolean->scm.
'string
'pointer
Calls gi-string->scm or gi-pointer->scm.
'n-string
'n-pointer
'n-gtype
Calls gi-n-string->scm, gi-n-pointer->scm or gi-n-gtype->scm.
The optional cmpl (complement) argument must be passed and set to the number of string(s), pointer(s) or gtype(s) contained in value, .
'strings
'pointers
Calls gi-strings->scm or gi-pointers->scm.
'csv-string
Calls gi-csv-string->scm.
'glist
'gslist
Calls gi-glist->scm or gi-gslist->scm, repsectively.
Returns #t
or #f
.
The GType of value must be a gboolean
.
Returns a string, a pointer or #f
if value is the
%null-pointer
.
The GType of value must be a gchar*
or a
gpointer
.
Returns a (possibly empty list) of string(s), pointer(s) or GType(s).
The GType of value must be a gchar**
, a
gpointer[]
or a GType[]
. The n-string,
n-pointer and n-gtype argument must be the length of
the value array.
Returns a (possibly empty) list of strings or pointer.
The GType of value must be a gchar**
or
gpointer[]
. The array must be NULL terminated.
Returns a list of string(s) or #f
if value is the
%null-pointer
.
The GType of value is gchar*
. Unless #f
, the list of
string(s) is obtained by splitting the (comma separated value) string
pointed to by value using using #\,
as the
char-pred
.
Returns a (possibly empty) list.
Obtains and returns a (possibly empty) list of the pointers stored in
the data
field of each element of g-list or g-slist.
Returns the GI representation of value.
The type, a symbol name (also called a type tag
or just a
tag
in the GI
terminology) supported values are:
'boolean
Calls scm->gi-boolean.
'string
'pointer
Calls scm->gi-string or scm->gi-pointer.
'n-string
'n-pointer
'n-gtype
Calls scm->gi-n-string, scm->gi-n-pointer or scm->gi-n-gtype.
The optional cmpl (complement) argument may be passed and set to the number of string(s), pointer(s) or gtype(s) contained in value.
'strings
'pointers
Calls scm->gi-strings or scm->gi-pointers.
'gslist
Calls scm->gi-gslist.
Returns 0
if value is #f
, otherwise, it returns
1
.
Returns a pointer.
If value is #f
, it returns %null-pointer
. Otherwise,
it returns a pointer to the string in value or value.
Returns two values.
If value is the empty list, it returns %null-pointer
and an
empty list. Otherwise, it returns a pointer to an array of pointer(s) to
the string(s) in value and a list of the ‘inner’ string
pointer(s).
It is the caller’s responsibility to maintain a reference to those inner pointer(s), until the array ‘itself’ (the first returned value) is no longer needed/used.
The array returned by scm->gi-strings is NULL
terminated,
where as the array returned by scm->gi-n-string is not.
Returns a pointer.
If value is an empty list, it returns
%null-pointer
. Otherwise, it returns a pointer to an array the
pointer(s) or GType(s) in value.
The returned array is not NULL
nor 0-
terminated.
Returns a pointer.
If value is an empty list, it returns
%null-pointer
. Otherwise, it returns a pointer to an array the
pointer(s) in value.
The returned array is NULL
terminated.
Returns a pointer.
If value is an empty list, it returns
%null-pointer
. Otherwise, it returns a pointer to a
GSList
, with its element’s data being (in order), the pointer(s)
in value.
The size (the number of bytes) that a (Glib) pointer occupies in memory (which is architecture dependent).