Typelib

G-Golf Typelib low level API.
GITypelib — Layout and accessors for typelib.

Procedures

g-golf-typelib-new
call-with-input-typelib
g-typelib-new-from-memory
g-typelib-free
g-typelib-get-namespace

Description

TODO.

Procedures

Note: in this section, the typelib argument is [must be] a pointer to a GITypelib.

Procedure: g-golf-typelib-new file

Returns a pointer to a new GITypelib.

file must be a valid typelib filename.

This procedure actually sets things up and calls g-typelib-new-from-memory.

Procedure: call-with-input-typelib file proc

Returns the value(s) returned by proc.

file must be a valid typelib filename. Makes a new GITypelib by calling (g-golf-typelib-new file) and calls (proc typelib) with the resulting GITypelib.

When proc returns, the GITypelib is free’d by calling g-typelib-free. Otherwise the [Glib - C] memory chunk might not be free’d automatically, though the scheme pointer returned by g-golf-typelib-new will be garbage collected in the usual way if not otherwise referenced.

Procedure: g-typelib-new-from-memory pointer size gerror

Returns a pointer to a new GITypelib.

pointer must be the address of a memory chunk containing the typelib, size is the number of bytes of the memory chunk containing the typelib, and gerror a pointer to a GError.

Creates a new GITypelib from a memory location. The memory block pointed to by typelib will be automatically g_free()d when the repository is destroyed.

Procedure: g-typelib-free typelib

Returns nothing.

Free a GITypelib.

Procedure: g-typelib-get-namespace typelib

Returns the namespace of typelib.