Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
G
 g_errorcontext_strdata
 g_errorcontext_stroffset
 g_logmain_interface
 g_maincontext
 g_utf8_bytesperchar
 g_wbuffer_cstring
 g_wbuffer_memblock
 g_wbuffer_static
 gconfig_BITS_ALPHA
 gconfig_BITS_BLUE
 gconfig_BITS_BUFFER
 gconfig_BITS_DEPTH
 gconfig_BITS_GREEN
 gconfig_BITS_RED
 gconfig_BITS_STENCIL
 gconfig_CONFORMANT
 gconfig_e
 gconfig_filter_INIT, gconfig_filter_t
 gconfig_filter_t
 gconfig_FREE, gconfig_t
 gconfig_INIT, gconfig_t
 gconfig_NONE
 gconfig_NROFELEMENTS
 gconfig_t
 gconfig_TRANSPARENT_ALPHA
 gconfig_TYPE
 gconfig_value_CONFORMANT_ES1_BIT
 gconfig_value_CONFORMANT_ES2_BIT
 gconfig_value_CONFORMANT_OPENGL_BIT
 gconfig_value_CONFORMANT_OPENVG_BIT
 gconfig_value_e
 gconfig_value_TYPE_PBUFFER_BIT
 gconfig_value_TYPE_PIXMAP_BIT
 gconfig_value_TYPE_WINDOW_BIT
 gcontext_api_e
 gcontext_api_OPENGL
 gcontext_api_OPENGLES
 gcontext_api_OPENVG
 gcontext_FREE, gcontext_t
 gcontext_t
 GenerateErrorStringTable-Tool
 generic
 Generic Structure of Syncthread
 genericcast_dlist
 genericcast_dlistnode
 genericcast_errorcontext
 genericcast_iobj
 genericcast_iocallback
 genericcast_log
 genericcast_logit
 genericcast_memblock
 genericcast_memstream
 genericcast_mmfile
 genericcast_mmit
 genericcast_objectcacheit
 genericcast_pagecacheit
 genericcast_queue
 genericcast_slist
 genericcast_splaytree
 genericcast_string
 genericcast_stringstream
 genericcast_threadtls
 genericcast_TYPE
 genericcast_typeadapt
 genericcast_typeadaptbinarykey
 genericcast_typeadaptcomparator
 genericcast_typeadaptgethash
 genericcast_typeadaptgetkey
 genericcast_typeadaptlifetime
 genericcast_vmpage
 genericcast_windowevh
 genericcast_x11drawable
 genericcast_x11window
 genericcast_x11windowevh
 genfile
 genmake
 geometry_x11window, x11window_t
 getbinarykey, typeadapt_getkey_it
 GETBIT
 getbuffer, log_it
 GETBUFFER_ERRLOG
 GETBUFFER_LOG
 getbuffer_logbuffer
 getbuffer_logwriter, logwriter_t
 getenabled_fpuexcept
 gethash, typeadapt_t
 gethash-service, typeadapt_t
 getinistate_patriciatrie
 getinistate_redblacktree
 getinistate_splaytree
 getkey, typeadapt_t
 getkey-service, typeadapt_t
 getpart_url
 getsegv_signalhandler, signalhandler_t
 getsignaled_fpuexcept
 getstate, log_it
 GETSTATE_LOG
 getstate_logwriter, logwriter_t
 gl_display
 gl_gconfig
 gl_gcontext
 gl_pixelbuffer
 gl_surface
 gl_window
 GLESv2SystemKonfig
 global variables
 GLSystemKonfig
 GNU C-Compiler
 Goal
 gofirst_directory, directory_t
 gofirst_ipaddrlist, ipaddr_list_t
 gofirst_vmmappedregions, vm_mappedregions_t
 gofirst_x11videomodeiterator, x11videomode_iterator_t
 Graphic-Context
 Graphic-Context impl
 Graphic-Display
 Graphic-Display impl
 Graphic-Pixel-Buffer
 Graphic-Pixel-Buffer impl
 Graphic-Surface
 Graphic-Surface impl
 Graphic-Surface-Configuration
 Graphic-Surface-Configuration impl
 Graphic-Window
 Graphic-Window impl
 Graphic-Window-Configuration
 Graphic-Window-Configuration impl
 group
 growleft_memblock
 growprefix_trienodesoffsets, trie_nodeoffsets_t
 growright_memblock
extern uint8_t g_errorcontext_strdata[]
Used in processcontext_INIT_STATIC to initialize static processcontext_t.
extern uint16_t g_errorcontext_stroffset[]
Used in processcontext_INIT_STATIC to initialize static processcontext_t.
extern struct log_it g_logmain_interface
Adapted interface (see log_it) to static log service.
log_it g_logmain_interface
Contains single instance of interface log_it.
extern struct maincontext_t g_maincontext
Global variable which describes the main context for the current process.
extern uint8_t g_utf8_bytesperchar[256]
Stores the length in bytes of an encoded utf8 character indexed by the first encoded byte.
extern wbuffer_it g_wbuffer_cstring
Adapt wbuffer_t to use cstring_t as buffer.
extern wbuffer_it g_wbuffer_memblock
Adapt wbuffer_t to use memblock_t as buffer.
extern wbuffer_it g_wbuffer_static
Adapt wbuffer_t to a static buffer.
The minimum number of bits per pixel which determine the alpha value (1: fully opaque, 0: fully transparent).
The minimum number of bits per pixel which determine the blue color.
The minimum number of bits per pixel for all color channels together including alpha.
The minimum number of bits the depth buffer must support.
The minimum number of bits per pixel which determine the green color.
The minimum number of bits per pixel which determine the red color.
The minimum number of bits the stencil buffer must support.
Determine the supported drawing APIs.
#define gconfig_filter_INIT(accept,
user) { user, accept }
Static initializer.
typedef struct gconfig_filter_t gconfig_filter_t
Declares filter to select between different possible configuration.
#define gconfig_FREE { 0 }
Static initializer.
#define gconfig_INIT(glconfig) { glconfig }
Static initializer.
This is the last entry in a list to indicate termination.
Gives the number of all valid configuration options excluding gconfig_NROFELEMENTS.
struct gconfig_t
Contains a specific surface configuration.
A value != 0 sets a flag which makes the background of a window surface shine through.
The configuration supports drawing into a specific surface type.
Config supports creating OpenGL ES 1.0/1.1 graphic contexts.
Config supports creating OpenGL ES 2.0 graphic contexts.
Config supports creating OpenGL graphic contexts.
Config supports creating OpenVG graphic contexts.
The config supports drawing into a OpenGL (ES) pixel buffer surface.
The config supports drawing into a native pixmap surface.
The config supports drawing into a window surface.
Determines the rendering API the graphic context supports and the client is using for drawing calls.
The client uses api OpenGL for drawing.
The client uses api OpenGL ES for drawing.
The client uses api OpenVG for drawing.
#define gcontext_FREE { 0 }
Static initializer.
struct gcontext_t
Wraps the native implementation of an OpenGL context.
Generate a table which contains error strings of all system error codes.
#define genericcast_dlist(
   list
) ( __extension__ ({ static_assert( sizeof((list)->last) == sizeof(((dlist_t*)0)->last) && offsetof(typeof(*(list)), last) == offsetof(dlist_t, last) && (typeof((list)->last))0 == (dlist_node_t*)0, "ensure compatible structure" ) ; (dlist_t*) (list) ; }))
Implements dlist_t.genericcast_dlist.
dlist_t * genericcast_dlist(void *list)
Casts list into dlist_t if that is possible.
Implements dlist_node_t.genericcast_dlistnode.
dlist_node_t * genericcast_dlistnode(void *node)
Casts node into pointer to dlist_node_t.
#define genericcast_errorcontext(
   object
) ( __extension__ ({ typeof(object) _obj = (object) ; errorcontext_t * _errcon = 0 ; static_assert( sizeof(_errcon->stroffset) == sizeof(_obj->stroffset) && sizeof((_errcon->stroffset)[0]) == sizeof((_obj->stroffset)[0]) && offsetof(errorcontext_t, stroffset) == offsetof(typeof(*_obj), stroffset) && sizeof(_errcon->strdata) == sizeof(_obj->strdata) && sizeof(_errcon->strdata[0]) == sizeof(_obj->strdata[0]) && offsetof(errorcontext_t, strdata) == offsetof(typeof(*_obj), strdata), "members are compatible") ; if (0) { volatile uint16_t _off ; volatile uint8_t _str ; _off = _obj->stroffset[0] ; _str = _obj->strdata[_off] ; (void) _str ; } (void) _errcon ; (errorcontext_t *)(_obj) ; }))
Implements errorcontext_t.genericcast_errorcontext.
errorcontext_t * genericcast_errorcontext(void *object)
Casts a pointer to generic object into pointer to errorcontext_t.
#define genericcast_iobj(
   iobj,
   typenameprefix
) ( __extension__ ({ static_assert( &((typeof(iobj))0)->object == ((struct typenameprefix##_t**) offsetof(iobj_t, object)) && &((typeof(iobj))0)->iimpl == ((struct typenameprefix##_it**) offsetof(iobj_t, iimpl)), "compatible structure") ; (typenameprefix##_t*) (iobj) ; }))
Implements iobj_t.genericcast_iobj.
void * genericcast_iobj(void *iobj,
IDNAME typenameprefix)
Casts pointer to an interfaceable object to its standard type name.
#define genericcast_iocallback(
   iocb,
   iohandler_t
) ( __extension__ ({ static_assert( offsetof(iocallback_t, object) == offsetof(typeof(*(iocb)), object) && (typeof((iocb)->object)*)0 == (iohandler_t**)0 && offsetof(iocallback_t, iimpl) == offsetof(typeof(*(iocb)), iimpl) && (typeof((iocb)->iimpl)*)0 == (void(**)(iohandler_t*, sys_iochannel_t, uint8_t))0, "ensure same structure") ; (iocallback_t*) (iocb) ; }))
Implements iocallback_t.genericcast_iocallback.
iocallback_t * genericcast_iocallback(void *iocb,
TYPENAME iohandler_t) ;
Casts parameter iocb into pointer to iocallback_t.
#define genericcast_log(iobj) genericcast_iobj(iobj, log)
Implements log_t.genericcast_log.
log_t * genericcast_log(void *iobj)
Casts parameter iobj to pointer to log_t.
#define genericcast_logit(
   logif,
   log_t
) ( __extension__ ({ static_assert( &((typeof(logif))0)->printf == (void(**)(log_t*,uint8_t,uint8_t, const log_header_t*, const char*,...)) &((log_it*)0)->printf && &((typeof(logif))0)->printtext == (void(**)(log_t*,uint8_t,uint8_t, const log_header_t*, log_text_f,...)) &((log_it*)0)->printtext && &((typeof(logif))0)->flushbuffer == (void(**)(log_t*,uint8_t)) &((log_it*)0)->flushbuffer && &((typeof(logif))0)->clearbuffer == (void(**)(log_t*,uint8_t)) &((log_it*)0)->clearbuffer && &((typeof(logif))0)->getbuffer == (void(**)(const log_t*,uint8_t, uint8_t**,size_t*)) &((log_it*)0)->getbuffer && &((typeof(logif))0)->getstate == (uint8_t(**)(const log_t*, uint8_t)) &((log_it*)0)->getstate && &((typeof(logif))0)->compare == (int(**)(const log_t*, uint8_t, size_t,const uint8_t*)) &((log_it*)0)->compare && &((typeof(logif))0)->setstate == (void(**)(log_t*,uint8_t, uint8_t)) &((log_it*)0)->setstate, "ensure same structure"); (log_it*) (logif); }))
Implements log_it.genericcast_logit.
log_it * genericcast_logit(void *logif,
TYPENAME log_t)
Casts pointer logif into pointer to interface log_it.
#define genericcast_memblock(
   obj,
   nameprefix
) ( __extension__ ({ typeof(obj) _obj = (obj) ; static_assert( sizeof(_obj->nameprefix##addr) == sizeof(((memblock_t*)0)->addr) && offsetof(memblock_t, addr) == 0 && (typeof(_obj->nameprefix##addr))10 == (uint8_t*)10 && sizeof(_obj->nameprefix##size) == sizeof(((memblock_t*)0)->size) && offsetof(memblock_t, size) == ((uintptr_t)&_obj->nameprefix##size) -((uintptr_t)&_obj->nameprefix##addr) && (typeof(_obj->nameprefix##size)*)10 == (size_t*)10, "obj is compatible") ; (memblock_t *)(&_obj->nameprefix##addr) ; }))
Implements memblock_t.genericcast_memblock.
memblock_t * genericcast_memblock(void *obj,
IDNAME nameprefix)
Casts a pointer to generic object into pointer to memblock_t.
#define genericcast_memstream(
   obj,
   nameprefix
) ( __extension__ ({ typeof(obj) _obj = (obj) ; static_assert( &((memstream_t*)((uintptr_t) &_obj->nameprefix##next))->next == &_obj->nameprefix##next && &((memstream_t*)((uintptr_t) &_obj->nameprefix##next))->end == &_obj->nameprefix##end, "obj is compatible") ; (memstream_t *)(&_obj->nameprefix##next) ; }))
Implements memstream_t.genericcast_memstream.
memstream_t * genericcast_memstream(void *obj,
IDNAME nameprefix)
Casts pointer obj into pointer to memstream_t.
#define genericcast_mmfile(
   obj,
   nameprefix,
   qualifier
) ( __extension__ ({ typeof(obj) _obj = (obj) ; static_assert( sizeof(_obj->nameprefix##addr) == sizeof(((mmfile_t*)0)->addr) && 0 == offsetof(mmfile_t, addr), && (typeof(_obj->nameprefix##addr)*)0 == (uint8_t**)0 && sizeof(_obj->nameprefix##size) == sizeof(((mmfile_t*)0)->size) && offsetof(mmfile_t, size) == ((uintptr_t)&_obj->nameprefix##size) -((uintptr_t)&_obj->nameprefix##addr) && (typeof(_obj->nameprefix##size)*)0 == (size_t**)0 "structure is compatible") ; (qualifier mmfile_t *)(&_obj->nameprefix##addr) ; }))
Implements mmfile_t.genericcast_mmfile.
mmfile_t * genericcast_mmfile(void *obj,
IDNAME nameprefix,
TYPEQUALIFIER qualifier)
Casts a generic object pointer into pointer to memblock_t.
#define genericcast_mmit(
   mminterface,
   memorymanager_t
) ( __extension__ ({ static_assert( &((typeof(mminterface))0)->malloc == (int (**) (memorymanager_t*, size_t, struct memblock_t*)) &((mm_it*)0)->malloc && &((typeof(mminterface))0)->mresize == (int (**) (memorymanager_t*, size_t, struct memblock_t*)) &((mm_it*)0)->mresize && &((typeof(mminterface))0)->mfree == (int (**) (memorymanager_t*, struct memblock_t*)) &((mm_it*)0)->mfree && &((typeof(mminterface))0)->sizeallocated == (size_t (**) (memorymanager_t*)) &((mm_it*)0)->sizeallocated, "ensure same structure") ; (mm_it*) (mminterface) ; }))
Implements mm_it.genericcast_mmit.
mm_it * genericcast_mmit(void *mminterface,
TYPENAME memorymanager_t)
Casts parameter mminterface into pointer to interface mm_it.
#define genericcast_objectcacheit(
   cache,
   objectcache_t
) ( __extension__ ({ static_assert( offsetof(objectcache_it, lock_iobuffer) == offsetof(typeof(*(cache)), lock_iobuffer) && offsetof(objectcache_it, unlock_iobuffer) == offsetof(typeof(*(cache)), unlock_iobuffer), "ensure same structure") ; if (0) { (cache)->lock_iobuffer((objectcache_t*)0, (struct memblock_t**)0) ; (cache)->unlock_iobuffer((objectcache_t*)0, (struct memblock_t**)0) ; } (objectcache_it*) (cache) ; }))
Implements objectcache_it.genericcast_objectcacheit.
objectcache_it * genericcast_objectcacheit(void *cache,
TYPENAME objectcache_t) ;
Casts first parameter into pointer to objectcache_it.
#define genericcast_pagecacheit(
   pgcacheif,
   pagecache_t
) ( __extension__ ({ static_assert( offsetof(typeof(*(pgcacheif)), allocpage) == offsetof(pagecache_it, allocpage) && offsetof(typeof(*(pgcacheif)), releasepage) == offsetof(pagecache_it, releasepage) && offsetof(typeof(*(pgcacheif)), sizeallocated) == offsetof(pagecache_it, sizeallocated) && offsetof(typeof(*(pgcacheif)), allocstatic) == offsetof(pagecache_it, allocstatic) && offsetof(typeof(*(pgcacheif)), freestatic) == offsetof(pagecache_it, freestatic) && offsetof(typeof(*(pgcacheif)), sizestatic) == offsetof(pagecache_it, sizestatic) && sizeof(int) == sizeof((pgcacheif)->allocpage( (pagecache_t*)0, pagesize_16384, (struct memblock_t*)0)) && sizeof(int) == sizeof((pgcacheif)->releasepage( (pagecache_t*)0, (struct memblock_t*)0)) && sizeof(size_t) == sizeof((pgcacheif)->sizeallocated( (const pagecache_t*)0)) && sizeof(int) == sizeof((pgcacheif)->allocstatic( (pagecache_t*)0, (size_t)0, (struct memblock_t*)0)) && sizeof(int) == sizeof((pgcacheif)->freestatic( (pagecache_t*)0, (struct memblock_t*)0)) && sizeof(size_t) == sizeof((pgcacheif)->sizestatic( (const pagecache_t*)0)) && sizeof(int) == sizeof((pgcacheif)->emptycache( (pagecache_t*)0)), "ensure same structure") ; if (0) { int _err ; size_t _err2 ; _err = (pgcacheif)->allocpage( (pagecache_t*)0, pagesize_16384, (struct memblock_t*)0) ; _err += (pgcacheif)->releasepage( (pagecache_t*)0, (struct memblock_t*)0) ; _err2 = (pgcacheif)->sizeallocated( (const pagecache_t*)0) ; _err += (pgcacheif)->allocstatic( (pagecache_t*)0, (size_t)128, (struct memblock_t *)0) ; _err += (pgcacheif)->freestatic( (pagecache_t*)0, (struct memblock_t *)0) ; _err2 += (pgcacheif)->sizestatic( (const pagecache_t*)0) ; _err += (pgcacheif)->emptycache( (pagecache_t*)0) ; _err2 += (size_t)_err ; (void) _err2 ; } (pagecache_it*) (pgcacheif) ; }))
Implements pagecache_it.genericcast_pagecacheit.
pagecache_it * genericcast_pagecacheit(void *pgcacheif,
TYPENAME pagecache_t)
Casts pointer pgcacheif into pointer to interface pagecache_it.
#define genericcast_queue(
   queue
) ( __extension__ ({ static_assert( sizeof((queue)->last) == sizeof(((queue_t*)0)->last) && offsetof(typeof(*(queue)), last) == offsetof(queue_t, last) && (typeof((queue)->last))0 == (struct dlist_node_t*)0, "ensure compatible structure" ) ; (queue_t*) (queue) ; }))
Implements queue_t.genericcast_queue.
queue_t * genericcast_queue(void *queue)
Tries to cast generic object queue into pointer to queue_t.
#define genericcast_slist(
   list
) ( __extension__ ({ static_assert(offsetof(typeof(*(list)), last) == offsetof(slist_t, last), "ensure same structure") ; static_assert((typeof((list)->last))0 == (slist_node_t*)0, "ensure same type") ; (slist_t*) (list) ; }))
Implements slist_t.genericcast_slist.
slist_t * genericcast_slist(void *list)
Casts list into slist_t if that is possible.
#define genericcast_splaytree(
   tree
) ( __extension__ ({ static_assert(offsetof(splaytree_t, root) == 0, "first member") ; static_assert((typeof((tree)->root))0 == (splaytree_node_t*)0, "ensure same type") ; (splaytree_t*) &(tree)->root ; }))
Implements splaytree_t.genericcast_splaytree.
splaytree_t * genericcast_splaytree(void *tree)
Casts tree into slaytree_t if that is possible.
Implements string_t.genericcast_string.
const string_t * genericcast_string(const void *obj)
Casts a pointer to generic obj type into pointer to string_t.
#define genericcast_stringstream(
   strstream
) ( __extension__({ typeof(strstream) _obj = (strstream) ; static_assert( ((uint8_t*)&_obj->end) - ((uint8_t*)&_obj->next) == offsetof(stringstream_t, end) && sizeof(_obj->next) == sizeof(void*) && sizeof(_obj->end) == sizeof(void*), "member next and member end in that order") ; if (0) { volatile uint8_t _b1 ; volatile uint8_t _b2 ; _b1 = _obj->next[0] ; _b2 = _obj->end[0] ; (void) (_b1 + _b2) ; } (stringstream_t*)(&_obj->next) ; }))
Implements stringstream_t.genericcast_stringstream.
stringstream_t * genericcast_stringstream(void *strstream)
Converts pointer to strstream of any type to pointer to stringstream_t.
#define genericcast_threadtls(
   obj,
   nameprefix
) ( __extension__ ({ typeof(obj) _obj = (obj) ; static_assert( sizeof(_obj->nameprefix##addr) == sizeof(((thread_tls_t*)0)->addr) && (typeof(_obj->nameprefix##addr))10 == (uint8_t*)10 && 0 == offsetof(thread_tls_t, addr), "obj is compatible") ; (thread_tls_t *)(&_obj->nameprefix##addr) ; }))
Implements thread_tls_t.genericcast_threadtls.
thread_tls_t * genericcast_threadtls(void *obj,
IDNAME nameprefix)
Casts pointer to an object into pointer to thread_tls_t.
If an interface subtype is constructed with help of TYPE_it_DECLARE it is compatible with TYPE_it.
#define genericcast_typeadapt(
   typeadp,
   typeadapter_t,
   object_t,
   key_t
) ( __extension__ ({ static_assert( offsetof(typeof(*(typeadp)), comparator) == offsetof(typeadapt_t, comparator) && offsetof(typeof(*(typeadp)), gethash) == offsetof(typeadapt_t, gethash) && offsetof(typeof(*(typeadp)), getkey) == offsetof(typeadapt_t, getkey) && offsetof(typeof(*(typeadp)), lifetime) == offsetof(typeadapt_t, lifetime), "ensure same structure") ; if (0) { (void) genericcast_typeadaptcomparator((typeof((typeadp)->comparator)*)0, typeadapter_t, object_t, key_t) ; (void) genericcast_typeadaptgethash((typeof((typeadp)->gethash)*)0, typeadapter_t, object_t, key_t) ; (void) genericcast_typeadaptgetkey((typeof((typeadp)->getkey)*)0, typeadapter_t, object_t) ; (void) genericcast_typeadaptlifetime((typeof((typeadp)->lifetime)*)0, typeadapter_t, object_t) ; } (typeadapt_t*) (typeadp) ; }))
Implements typeadapt_t.genericcast_typeadapt.
typeadapt_t * genericcast_typeadapt(void *typeadp,
TYPENAME testadapter_t,
TYPENAME object_t)
Casts parameter typeadp into pointer to typeadapt_t.
#define genericcast_typeadaptbinarykey(
   conststr
) ( __extension__ ({ typeof(conststr) _conststr = (conststr) ; static_assert( offsetof(typeadapt_binarykey_t, addr) == offsetof(typeof(*(conststr)), addr) && offsetof(typeadapt_binarykey_t, size) == offsetof(typeof(*(conststr)), size), "ensure same structure") ; if (0) { int _err = 0 ; const uint8_t * _addr = _conststr->addr ; size_t _size = _conststr->size ; _err = (int) (_addr[0] + _size) ; (void) _err ; } (typeadapt_binarykey_t*) _conststr ; }))
Implements typeadapt_binarykey_t.genericcast_typeadaptbinarykey.
typeadapt_binarykey_t * genericcast_typeadaptbinarykey(void *conststr)
Casts parameter conststr into pointer to typeadapt_binarykey_t.
#define genericcast_typeadaptcomparator(
   adpcmp,
   typeadapter_t,
   object_t,
   key_t
) ( __extension__ ({ static_assert( offsetof(typeadapt_comparator_it, cmp_key_object) == offsetof(typeof(*(adpcmp)), cmp_key_object) && offsetof(typeadapt_comparator_it, cmp_object) == offsetof(typeof(*(adpcmp)), cmp_object), "ensure same structure") ; if (0) { int _err = (adpcmp)->cmp_key_object((typeadapter_t*)0, (const key_t)0, (const object_t*)0) ; _err += (adpcmp)->cmp_object((typeadapter_t*)0, (const object_t*)0, (const object_t*)0) ; (void) _err ; } (typeadapt_comparator_it*) (adpcmp) ; }))
Implements typeadapt_comparator_it.genericcast_typeadaptcomparator.
typeadapt_comparator_it * genericcast_typeadaptcomparator(
   void *adpcmp,
   TYPENAME typeadapter_t,
   TYPENAME object_t,
   TYPENAME key_t
) ;
Casts parameter adpcmp into pointer to typeadapt_comparator_it.
#define genericcast_typeadaptgethash(
   gethash,
   typeadapter_t,
   object_t,
   key_t
) ( __extension__ ({ static_assert( offsetof(typeadapt_gethash_it, hashobject) == offsetof(typeof(*(gethash)), hashobject) && offsetof(typeadapt_gethash_it, hashkey) == offsetof(typeof(*(gethash)), hashkey), "ensure same structure") ; if (0) { size_t hash = 0 ; hash += (gethash)->hashobject((typeadapter_t*)0, (const object_t*)0) ; hash += (gethash)->hashkey((typeadapter_t*)0, (const key_t)0) ; } (typeadapt_gethash_it*) (gethash) ; }))
Implements typeadapt_gethash_it.genericcast_typeadaptgethash.
typeadapt_gethash_it * genericcast_typeadaptgethash(void *gethash,
TYPENAME typeadapter_t,
TYPENAME object_t,
TYPENAME key_t) ;
Casts parameter gethash into pointer to typeadapt_gethash_it.
#define genericcast_typeadaptgetkey(
   adpgetkey,
   typeadapter_t,
   object_t
) ( __extension__ ({ static_assert( offsetof(typeadapt_getkey_it, getbinarykey) == offsetof(typeof(*(adpgetkey)), getbinarykey), "ensure same structure") ; if (0) { (adpgetkey)->getbinarykey( (typeadapter_t*)0, (object_t*)0, (typeadapt_binarykey_t*)0) ; } (typeadapt_getkey_it*) (adpgetkey) ; }))
Implements typeadapt_getkey_it.genericcast_typeadaptgetkey.
typeadapt_getkey_it * genericcast_typeadaptgetkey(void *adpgetkey,
TYPENAME typeadapter_t,
TYPENAME object_t) ;
Casts parameter adpgetkey into pointer to typeadapt_getkey_it.
#define genericcast_typeadaptlifetime(
   adplife,
   typeadapter_t,
   object_t
) ( __extension__ ({ static_assert( offsetof(typeadapt_lifetime_it, newcopy_object) == offsetof(typeof(*(adplife)), newcopy_object) && offsetof(typeadapt_lifetime_it, delete_object) == offsetof(typeof(*(adplife)), delete_object), "ensure same structure") ; if (0) { int _err = (adplife)->newcopy_object((typeadapter_t*)0, (object_t**)0, (const object_t*)0) ; _err += (adplife)->delete_object((typeadapter_t*)0, (object_t**)0) ; (void) _err ; } (typeadapt_lifetime_it*) (adplife) ; }))
Implements typeadapt_lifetime_it.genericcast_typeadaptlifetime.
typeadapt_lifetime_it * genericcast_typeadaptlifetime(void *adplife,
TYPENAME typeadapter_t,
TYPENAME object_t) ;
Casts parameter adplife into pointer to typeadapt_lifetime_it.
#define genericcast_vmpage(
   obj,
   nameprefix
) ( __extension__ ({ typeof(obj) _obj = (obj) ; static_assert( sizeof(_obj->nameprefix##addr) == sizeof(((vmpage_t*)0)->addr) && 0 == offsetof(vmpage_t, addr), "addr member is compatible") ; static_assert( sizeof(_obj->nameprefix##size) == sizeof(((vmpage_t*)0)->size) && offsetof(vmpage_t, size) == ((uintptr_t)&_obj->nameprefix##size) -((uintptr_t)&_obj->nameprefix##addr), "size member is compatible") ; if (0) { volatile uint8_t _err ; volatile size_t _size ; _size = _obj->nameprefix##size ; _err = _obj->nameprefix##addr[_size] ; (void) _err ; } (vmpage_t *)(&_obj->nameprefix##addr) ; }))
Implements vmpage_t.genericcast_vmpage.
vmpage_t * genericcast_vmpage(void *obj,
IDNAME nameprefix)
Casts a pointer to an compatible object into pointer to vmpage_t.
#define genericcast_windowevh(
   evhimpl,
   subwindow_t
) ( __extension__ ({ static_assert( offsetof(typeof(*(evhimpl)), onclose) == offsetof(window_evh_t, onclose) && offsetof(typeof(*(evhimpl)),ondestroy) == offsetof(window_evh_t, ondestroy) && offsetof(typeof(*(evhimpl)), onredraw) == offsetof(window_evh_t, onredraw) && offsetof(typeof(*(evhimpl)),onreshape) == offsetof(window_evh_t, onreshape) && offsetof(typeof(*(evhimpl)),onvisible) == offsetof(window_evh_t, onvisible), "ensure same structure"); if (0) { (evhimpl)->onclose((subwindow_t*)0); (evhimpl)->ondestroy((subwindow_t*)0); (evhimpl)->onredraw((subwindow_t*)0); (evhimpl)->onreshape((subwindow_t*)0, (uint32_t)0, (uint32_t)0); (evhimpl)->onvisible((subwindow_t*)0, (bool)0); } (const window_evh_t*) (evhimpl); }))
Implements window_evh_t.genericcast_windowevh.
const window_evh_t * genericcast_windowevh(const void *evhimpl,
TYPENAME subwindow_t)
Casts parameter evhimpl into pointer to interface window_evh_t.
Implements x11drawable_t.genericcast_x11drawable.
x11drawable_t* genericcast_x11drawable(void *drawable)
Casts drawable into pointer to x11drawable_t if that is possible.
#define genericcast_x11window(
   object
) ( __extension__ ({ static_assert( offsetof(typeof(*(object)), display) == offsetof(x11window_t, display) && offsetof(typeof(*(object)), sys_drawable) == offsetof(x11window_t, sys_drawable) && offsetof(typeof(*(object)), sys_colormap) == offsetof(x11window_t, sys_colormap) && offsetof(typeof(*(object)), evhimpl) == offsetof(x11window_t, evhimpl) && offsetof(typeof(*(object)), state) == offsetof(x11window_t, state) && offsetof(typeof(*(object)), flags) == offsetof(x11window_t, flags) && sizeof((object)->flags) == sizeof(((x11window_t*)0)->flags), "ensure same structure") ; (x11window_t *) (object) ; }))
Implements x11window_t.genericcast_x11window.
x11window_t * genericcast_x11window(void *object)
Casts a pointer to object into a pointer to x11window_t.
#define genericcast_x11windowevh(
   evhimpl,
   subwindow_t
) ( __extension__ ({ static_assert( offsetof(typeof(*(evhimpl)), onclose) == offsetof(x11window_evh_t, onclose) && offsetof(typeof(*(evhimpl)), ondestroy) == offsetof(x11window_evh_t, ondestroy) && offsetof(typeof(*(evhimpl)), onredraw) == offsetof(x11window_evh_t, onredraw) && offsetof(typeof(*(evhimpl)), onreshape) == offsetof(x11window_evh_t, onreshape) && offsetof(typeof(*(evhimpl)), onvisible) == offsetof(x11window_evh_t, onvisible), "ensure same structure"); if (0) { (evhimpl)->onclose((subwindow_t*)0); (evhimpl)->ondestroy((subwindow_t*)0); (evhimpl)->onredraw((subwindow_t*)0); (evhimpl)->onreshape((subwindow_t*)0, (uint32_t)0, (uint32_t)0); (evhimpl)->onvisible((subwindow_t*)0, (bool)0); } (const x11window_evh_t*) (evhimpl); }))
Implements x11window_evh_t.genericcast_x11windowevh.
const x11window_evh_t * genericcast_x11windowevh(const void *evhimpl,
TYPENAME subwindow_t)
Casts parameter evhimpl into pointer to interface x11window_evh_t.
Generates header and source file skeleton.
Makefile Generator genmake.
int geometry_x11window(const x11window_t *x11win,
/*out*/int32_t *screen_x,
/*out*/int32_t *screen_y,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
This is the geometry of x11win without the window manager frame in screen coordinates.
void (
   *getbinarykey
) (struct typeadapt_t * typeadp, struct typeadapt_object_t * node, /*out*/typeadapt_binarykey_t * binkey)
Returns in typeadapt_binarykey_t the description of a binary key.
Returns the bit value at bitoffset.
void (
   *getbuffer
) (const void * log, uint8_t channel, /*out*/uint8_t ** buffer, /*out*/size_t * size)
Returns content of log buffer as C-string and its size in bytes.
#define GETBUFFER_ERRLOG(buffer,
size) GETBUFFER_LOG(log_channel_ERR, buffer, size)
See GETBUFFER_LOG.
#define GETBUFFER_LOG(
    LOGCHANNEL,
   /*out char ***/buffer,
   /*out size_t **/size
) log_maincontext().iimpl->getbuffer(log_maincontext().object, LOGCHANNEL, buffer, size)
Returns C-string of buffered log and its length.
#define getbuffer_logbuffer(
   logbuf,
   _addr,
   _logsize
) ( __extension__ ({ const logbuffer_t * _lb ; _lb = (logbuf) ; *(_addr) = _lb->addr ; *(_logsize) = _lb->logsize ; }))
Implements logbuffer_t.getbuffer_logbuffer.
void getbuffer_logbuffer(const logbuffer_t *logbuf,
/*out*/uint8_t **addr,
/*out*/size_t *logsize)
Returns the start address of the memory buffer and size of written log.
void getbuffer_logwriter(const logwriter_t *lgwrt,
uint8_t channel,
/*out*/uint8_t **buffer,
/*out*/size_t *size)
Returns content of internal buffer corrseponding to channel as C-string.
fpu_except_e getenabled_fpuexcept(void)
Returns interrupt mask fpu register value.
typeadapt_gethash_it gethash
Interface to adapt reading of a hash value.
static inline void getinistate_patriciatrie(const patriciatrie_t *tree,
/*out*/patriciatrie_node_t **root,
/*out*/typeadapt_member_t *nodeadp)
Implements patriciatrie_t.getinistate_patriciatrie.
static inline void getinistate_patriciatrie(
   const patriciatrie_t *tree,  
   /*out*/patriciatrie_node_t **root,  
   /*out*/typeadapt_member_t *nodeadp/*0 = >ignored*/
)
Returns the current state of patriciatrie_t for later use in patriciatrie_INIT.
static inline void getinistate_redblacktree(const redblacktree_t *tree,
/*out*/redblacktree_node_t **root,
/*out*/typeadapt_member_t *nodeadp)
Implements redblacktree_t.getinistate_redblacktree.
static inline void getinistate_redblacktree(
   const redblacktree_t *tree,  
   /*out*/redblacktree_node_t **root,  
   /*out*/typeadapt_member_t *nodeadp/*0 = >ignored*/
)
Returns the current state of redblacktree_t for later use in redblacktree_INIT.
static inline void getinistate_splaytree(const splaytree_t *tree,
/*out*/splaytree_node_t **root)
Implements splaytree_t.getinistate_splaytree.
static inline void getinistate_splaytree(const splaytree_t *tree,
/*out*/splaytree_node_t **root)
Returns the current state of splaytree_t for later use in splaytree_INIT.
typeadapt_getkey_it getkey
Interface to adapt reading of a key as binary data.
Implements url_t.getpart_url.
const char * getpart_url(const url_t *url,
enum url_part_e part)
Return part of url as string.
signalhandler_segv_f getsegv_signalhandler(void)
Returns the current segmentation fault signal handler.
fpu_except_e getsignaled_fpuexcept(fpu_except_e exception_mask)
Returns signaled interrupt flags fpu register value.
uint8_t (*getstate) (const void * log, uint8_t channel)
Returns configured log_state_e for a specific log_channel_e channel.
#define GETSTATE_LOG(
   LOGCHANNEL
) log_maincontext().iimpl->getstate(log_maincontext().object, LOGCHANNEL)
Returns log_state_e for LOGCHANNEL.
uint8_t getstate_logwriter(const logwriter_t *lgwrt,
uint8_t channel)
Returns current log_state_e of channel (log_channel_e).
#define gl_display(disp) ((disp)->gldisplay)
Implements display_t.gl_display.
struct opengl_display_t * gl_display(const display_t *disp)
Returns a pointer to a native opengl display.
#define gl_gconfig(gconf) ((gconf)->glconfig)
Implements gconfig_t.gl_gconfig.
struct opengl_config_t * gl_gconfig(const gconfig_t *gconf)
Returns the native OpenGL surface config.
#define gl_gcontext(cont) ((cont)->glcontext)
Implements gcontext_t.gl_gcontext.
struct opengl_context_t * gl_gcontext(const gcontext_t *cont)
Returns the native OpenGL context.
#define gl_pixelbuffer(win) gl_surface(win)
Implements pixelbuffer_t.gl_pixelbuffer.
struct opengl_window_t * gl_pixelbuffer(const pixelbuffer_t *pbuf)
Returns a pointer to a native opengl window.
#define gl_surface(surf) ((surf)->glsurface)
Implements surface_t.gl_surface.
struct opengl_surface_t * gl_surface(surface_t *surf)
Returns the native OpenGL surface type tagged with (opengl_surface_t*).
#define gl_window(win) gl_surface(win)
Implements window_t.gl_window.
struct opengl_surface_t * gl_window(const window_t *win)
Returns a pointer to a native opengl window.
Contains OpenGL specific include files to support calling of OpenGL ES v2 functions.
Contains OpenGL specific include files to support calling of OpenGL functions.
To develop a database server and also a transactional general purpose programming language.
int gofirst_directory(directory_t *dir)
Sets the current read position to the begin of the directory stream.
void gofirst_ipaddrlist(ipaddr_list_t *addrlist)
Resets iterator to first ipaddr_t of internal list of addresses.
void gofirst_vmmappedregions(vm_mappedregions_t *iterator)
Resets iterator to the first element.
void gofirst_x11videomodeiterator(x11videomode_iterator_t *xvidit)
Resets iterator to first element.
Abstracts the os specific way to create an OpenGL graphic context.
Implements Graphic-Context.
Wraps the OS specific display initialization for the graphics display into a thin layer to make other modules OS independent.
Implements Graphic-Display.
Abstraction of a native OpenGL off-screen pixel buffer to make other modules OS independent.
Implements Graphic-Pixel-Buffer.
Wraps an OS specific OpenGL surface to make other modules OS independent.
Implements Graphic-Surface.
A configuration which describes the capabilities of an OpenGL graphic surface.
Implements Graphic-Surface-Configuration.
Wraps the OS specific window and its OpenGL specific extension into a thin layer to make other modules OS independent.
Implements Graphic-Window.
Defines a set of configuration attributes for windows.
Implements Graphic-Window-Configuration.
Implements memblock_t.growleft_memblock.
int growleft_memblock(memblock_t *mblock,
size_t addr_decrement)
Grows the memory block by decr its addr and incr its size..
static void growprefix_trienodesoffsets(trie_nodeoffsets_t *offsets,
uint8_t increment,
bool usefreechild)
Adds increment to length of prefix.
#define growright_memblock(
   mblock,
   size_increment
) ( __extension__ ({ int _err ; typeof(mblock) _mblock = (mblock) ; size_t _size = _mblock->size + (size_increment) ; if ( _size < _mblock->size || ((uintptr_t)_mblock->addr + _size < (uintptr_t)_mblock->addr)) { _err = ENOMEM ; } else { _mblock->size = _size ; _err = 0 ; } _err ; }))
Implements memblock_t.growright_memblock.
int growright_memblock(memblock_t *mblock,
size_t size_increment)
Grows the memory block by incrementing only its size.
Close