ggiWmhExit3
Initialize and uninitialize libggiwmh
Part of ggiWmhInit(3).
Usage
int ggiWmhInit(void);
int ggiWmhExit(void);
int ggiWmhAttach(ggi_visual_t
vis);
int ggiWmhDetach(ggi_visual_t
vis);
Overview
These are the standard LibGGI extension management functions for the LibGGIWmh extension. They allow initialization and deinitialization of the extension as a whole and of individual visuals.
ggiWmhInit will initialize an instance of the LibGGIWmh extension and prepare it to attach to visuals.
ggiWmhAttach, if successful, will allow LibGGIWmh functions to operate on the named visual.
ggiWmhDetach, if successful, will clean up all resources involved in providing the named visual with the LibGGIWmh API.
ggiWmhExit will free all resources associated with an instance of LibGGIWmh.
Return value
ggiWmhInit returns 0 for OK, otherwise an ggi-error(3) code.
ggiWmhExit returns:
0-
after successfully cleaning up,
>0-
the number of 'open'
ggiWmhInitcalls, if there has been more than one call toggiWmhInit. AsggiWmhInitandggiWmhExitmust be used in properly nested pairs, e.g. the firstggiWmhExitafter twoggiWmhInit's will return1.
<0-
ggi-error(3), especially if moreggiWmhExitcalls have been done thanggiWmhInitcalls.
ggiWmhAttach returns:
>=0-
the number LibGGIWmh has been attached to this visual, whereas 0 means the first time.
<0-
indicates an
ggi-error(3).
ggiWmhDetach returns:
0-
after successfully cleaning up,
>0-
the number of 'open'
ggiWmhAttachcalls, if there has been more than one call toggiWmhAttach. AsggiWmhAttachandggiWmhDetachmust be used in properly nested pairs, e.g. the firstggiWmhDetachafter two ggiWmhInit`s will return `1.
<0-
ggi-error(3), especially if moreggiWmhDetachcalls have been done thanggiWmhAttachcalls.
Examples
ggi_visual_t vis; ggiInit(); ggiWmhInit(); vis = ggiOpen(NULL); ggiWmhAttach(vis); /* ... */ ggiWmhDetach(vis); ggiWmhExit(); ggiExit();
History
- Debian 6.0 (Squeeze) to Debian 5.0 (Lenny): the text shown here
- Debian 4.0 (Etch)