XAllocClassHint()XAllocClassHint()NameXAllocClassHint – allocate an XClassHint structure.
Synopsis
XClassHint *XAllocClassHint( )
Returns
The allocated structure.
Availability
Release 4 and later.
DescriptionXAllocClassHint() allocates and returns a pointer to an XClassHint
structure, for use in calling XSetWMProperties(), XGetClassHint(), or
XSetClassHint(). Note that the pointer fields in the XClassHint struc‐
ture are initially set to NULL. If insufficient memory is available,
XAllocClassHint() returns NULL. To free the memory allocated to this
structure, use XFree().
The purpose of this function is to avoid compiled-in structure sizes,
so that object files will be binary compatible with later releases that
may have new members added to structures.
For more information, see Volume One, Chapter 12, Interclient Communi‐
cation.
Structures
typedef struct {
char *res_name;
char *res_class;
} XClassHint;
See AlsoXGetClassHint(), XSetClassHint(), XSetWMProperties().
Xlib - Window Manager Hints XAllocClassHint()