.\"Generated by db2man.xsl. Don't modify this, modify the source.
.deSh\" Subsection
.br
.ift.Sp
.ne5
.PP
\fB\\$1\fR
.PP
..
.deSp\" Vertical space (when we can't use .PP)
.ift.sp.5v
.ifn.sp
..
.deIp\" List item
.br
.ie\\n(.$>=3.ne\\$3
.el.ne3
.IP"\\$1"\\$2
..
.TH"GLIB-GENMARSHAL"1""""""
.SHNAME
glib-genmarshal \- C code marshaller generation utility for GLib closures
.SH"SYNOPSIS"
.nf
\fBglib-genmarshal\fR [options...] [files...]
.fi
.SH"DESCRIPTION"
.PP
\fBglib-genmarshal\fR is a small utility that generates C code marshallers for callback functions of the GClosure mechanism in the GObject sublibrary of GLib\&. The marshaller functions have a standard signature, they get passed in the invoking closure, an array of value structures holding the callback function parameters and a value structure for the return value of the callback\&. The marshaller is then responsible to call the respective C code function of the closure with all the parameters on the stack and to collect its return value\&.
.SH"INVOKATION"
.PP
\fBglib-genmarshal\fR takes a list of marshallers to generate as input\&. The marshaller list is either read from standard input or from files passed as additional arguments on the command line\&.
.SS"Options"
.TP
\fB--header\fR
Generate header file contents of the marshallers\&.
.TP
\fB--body\fR
Generate C code file contents of the marshallers\&.
.TP
\fB--prefix=string\fR, \fB--prefix string\fR
Specify marshaller prefix\&. The default prefix is `g_cclosure_marshal'\&.
.TP
\fB--skip-source\fR
Skip source location remarks in generated comments\&.
.TP
\fB--nostdinc\fR
Do not use the standard marshallers of the GObject library, and skip \fIgmarshal\&.h\fR include directive in generated header files\&.
.TP
\fB--g-fatal-warnings\fR
Make warnings fatal, that is, exit immediately once a warning occurs\&.
.TP
\fB-h\fR, \fB--help\fR
Print brief help and exit\&.
.TP
\fB-v\fR, \fB--version\fR
Print version and exit\&.
.SS"Marshaller list format"
.PP
The marshaller lists are processed line by line, a line can contain a comment in the form of
.nf
# this is a comment
.fi
or a marshaller specification of the form
.nf
\fIRTYPE\fR:\fIPTYPE\fR
\fIRTYPE\fR:\fIPTYPE\fR,\fIPTYPE\fR
\fIRTYPE\fR:\fIPTYPE\fR,\fIPTYPE\fR,\fIPTYPE\fR
.fi
(up to 16 \fIPTYPE\fRs may be present)\&.
.PP
The \fIRTYPE\fR part specifies the callback's return type and the \fIPTYPE\fRs right to the colon specify the callback's parameter list, except for the first and the last arguments which are always pointers\&.
.SS"Parameter types"
.PP
Currently, the following types are supported:
.TP
\fIVOID\fR
indicates no return type, or no extra parameters\&. If \fIVOID\fR is used as the parameter list, no additional parameters may be present\&.