Casts list into dlist_t if that is possible.
dlist_t * genericcast_dlist( void * list )
Casts node into pointer to dlist_node_t.
dlist_node_t * genericcast_dlistnode( void * node )
Casts a pointer to generic object into pointer to errorcontext_t.
errorcontext_t * genericcast_errorcontext( void * object )
Casts pointer to an interfaceable object to its standard type name.
void * genericcast_iobj( void * iobj, IDNAME typenameprefix )
Casts parameter iobj to pointer to log_t.
log_t * genericcast_log( void * iobj )
Casts pointer logif into pointer to interface log_it.
log_it * genericcast_logit( void * logif, TYPENAME log_t )
Casts a pointer to generic object into pointer to memblock_t.
memblock_t * genericcast_memblock( void * obj, IDNAME nameprefix )
Casts pointer obj into pointer to memstream_t.
memstream_t * genericcast_memstream( void * obj, IDNAME nameprefix )
Casts a generic object pointer into pointer to memblock_t.
mmfile_t * genericcast_mmfile( void * obj, IDNAME nameprefix, TYPEQUALIFIER qualifier )
Casts parameter mminterface into pointer to interface mm_it.
mm_it * genericcast_mmit( void * mminterface, TYPENAME memorymanager_t )
Casts pointer pgcacheif into pointer to interface pagecache_it.
pagecache_it * genericcast_pagecacheit( void * pgcacheif, TYPENAME pagecache_t )
Tries to cast generic object queue into pointer to queue_t.
queue_t * genericcast_queue( void * queue )
Casts list into slist_t if that is possible.
slist_t * genericcast_slist( void * list )
Casts tree into slaytree_t if that is possible.
splaytree_t * genericcast_splaytree( void * tree )
Casts a pointer to generic obj type into pointer to string_t.
const string_t * genericcast_string( const void * obj )
Converts pointer to strstream of any type to pointer to stringstream_t.
stringstream_t * genericcast_stringstream( void * strstream )
Casts pointer to an object into pointer to thread_tls_t.
thread_tls_t * genericcast_threadtls( void * obj, IDNAME nameprefix )
Casts parameter typeadp into pointer to typeadapt_t.
typeadapt_t * genericcast_typeadapt( void * typeadp, TYPENAME testadapter_t, TYPENAME object_t )
Casts parameter conststr into pointer to typeadapt_binarykey_t.
typeadapt_binarykey_t * genericcast_typeadaptbinarykey( void * conststr )
Casts a pointer to an compatible object into pointer to vmpage_t.
vmpage_t * genericcast_vmpage( void * obj, IDNAME nameprefix )
Casts parameter evhimpl into pointer to interface window_evh_t.
const window_evh_t * genericcast_windowevh( const void * evhimpl, TYPENAME subwindow_t )
Casts drawable into pointer to x11drawable_t if that is possible.
x11drawable_t* genericcast_x11drawable( void * drawable )
Casts a pointer to object into a pointer to x11window_t.
x11window_t * genericcast_x11window( void * object )
Casts parameter evhimpl into pointer to interface x11window_evh_t.
const x11window_evh_t * genericcast_x11windowevh( const void * evhimpl, TYPENAME subwindow_t )
This is the geometry of x11win without the window manager frame in screen coordinates.
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 )
Returns the start address of the memory buffer and size of written log.
void getbuffer_logbuffer( const logbuffer_t * logbuf, /*out*/uint8_t ** addr, /*out*/size_t * logsize )
Returns content of internal buffer corrseponding to channel as C-string.
void getbuffer_logwriter( const logwriter_t * lgwrt, uint8_t channel, /*out*/uint8_t ** buffer, /*out*/size_t * size )
Returns interrupt mask fpu register value.
fpu_except_e getenabled_fpuexcept( void )
Implements patriciatrie_t.getinistate_patriciatrie.
static inline void getinistate_patriciatrie( const patriciatrie_t * tree, /*out*/patriciatrie_node_t ** root, /*out*/typeadapt_member_t * nodeadp )
Returns the current state of patriciatrie_t for later use in patriciatrie_INIT.
static inline void getinistate_patriciatrie( const patriciatrie_t * tree, /*out*/patriciatrie_node_t ** root, /*out*/typeadapt_member_t * nodeadp/*0 = >ignored*/ )
Implements redblacktree_t.getinistate_redblacktree.
static inline void getinistate_redblacktree( const redblacktree_t * tree, /*out*/redblacktree_node_t ** root, /*out*/typeadapt_member_t * nodeadp )
Returns the current state of redblacktree_t for later use in redblacktree_INIT.
static inline void getinistate_redblacktree( const redblacktree_t * tree, /*out*/redblacktree_node_t ** root, /*out*/typeadapt_member_t * nodeadp/*0 = >ignored*/ )
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.
static inline void getinistate_splaytree( const splaytree_t * tree, /*out*/splaytree_node_t ** root )
Return part of url as string.
const char * getpart_url( const url_t * url, enum url_part_e part )
Returns the current segmentation fault signal handler.
signalhandler_segv_f getsegv_signalhandler( void )
Returns signaled interrupt flags fpu register value.
fpu_except_e getsignaled_fpuexcept( fpu_except_e exception_mask )
Returns current log_state_e of channel (log_channel_e).
uint8_t getstate_logwriter( const logwriter_t * lgwrt, uint8_t channel )
Returns a pointer to a native opengl display.
struct opengl_display_t * gl_display( const display_t * disp )
Returns the native OpenGL surface config.
struct opengl_config_t * gl_gconfig( const gconfig_t * gconf )
Returns the native OpenGL context.
struct opengl_context_t * gl_gcontext( const gcontext_t * cont )
Returns a pointer to a native opengl window.
struct opengl_window_t * gl_pixelbuffer( const pixelbuffer_t * pbuf )
Returns the native OpenGL surface type tagged with (opengl_surface_t*).
struct opengl_surface_t * gl_surface( surface_t * surf )
Returns a pointer to a native opengl window.
struct opengl_surface_t * gl_window( const window_t * win )
Sets the current read position to the begin of the directory stream.
int gofirst_directory( directory_t * dir )
Resets iterator to first ipaddr_t of internal list of addresses.
void gofirst_ipaddrlist( ipaddr_list_t * addrlist )
Resets iterator to the first element.
void gofirst_vmmappedregions( vm_mappedregions_t * iterator )
Resets iterator to first element.
void gofirst_x11videomodeiterator( x11videomode_iterator_t * xvidit )
Grows the memory block by decr its addr and incr its size..
int growleft_memblock( memblock_t * mblock, size_t addr_decrement )
Adds increment to length of prefix.
static void growprefix_trienodesoffsets( trie_nodeoffsets_t * offsets, uint8_t increment, bool usefreechild )
Grows the memory block by incrementing only its size.
int growright_memblock( memblock_t * mblock, size_t size_increment )