VFunc Info

G-Golf VFunc Info low level API.
GIVFuncInfo — Struct representing a virtual function

Procedures

g-vfunc-info-get-flags
g-vfunc-info-get-offset
g-vfunc-info-get-signal
g-vfunc-info-get-invoker

Types and Values

%gi-vfunc-info-flags

Description

GIVFuncInfo represents a virtual function.

A virtual function is a callable object that belongs to either a Object Info or a Interface Info.

Procedures

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

Procedure: g-vfunc-info-get-flags info

Returns a (possibly empty) list.

Obtains and returns the flags for the virtual function info. See %gi-vfunc-info-flags for the possible flag values.

Procedure: g-vfunc-info-get-offset info

Returns an offset or #f.

Obtains and returns the offset of the virtual function in the class struct. The value #f indicates that the offset is unknown.

Procedure: g-vfunc-info-get-signal info

Returns a pointer or #f.

Obtains and returns a signal (a pointer to a Signal Info) for the virtual function if one is set. The signal comes from the object or interface to which this virtual function belongs.

Procedure: g-vfunc-info-get-invoker info

Returns a pointer or #f.

If this virtual function has an associated invoker method, this procedure will return it (a pointer to a Function Info). An invoker method is a C entry point.

Not all virtuals will have invokers.

The GIFunctionInfo, if one was returned, must be freed by calling g-base-info-unref

Types and Values

Instance Variable of <gi-flags>: %gi-vfunc-info-flags

An instance of <gi-flags>, who’s members are the scheme representation of the flags of a GIVFuncInfo:

g-name: GIVFuncInfoFlags
name: gi-vfunc-info-flags
enum-set:

must-chain-up
must-override
must-not-override
throws