src/rtlib/io_widthdev.c
/** Allocate a new device info node.
 *
 * @return pointer to the new node
 */
Allocate a new device info node.
@return pointer to the new node
Allocate a new device info node . @return pointer to the new node
static DEV_INFO_WIDTH *fb_hListDevElemAlloc ( FB_LIST *list, const char *device, int width )
{
    DEV_INFO_WIDTH *node = (DEV_INFO_WIDTH*) calloc( 1, sizeof(DEV_INFO_WIDTH) );
    node->device = strdup(device);
    node->width = width;
    fb_hListDynElemAdd( list, &node->elem );
    return node;
}
static DEV_INFO_WIDTH * fb_hListDevElemAlloc ( FB_LIST * list , const char * device , int width ) { DEV_INFO_WIDTH * node = ( DEV_INFO_WIDTH * ) calloc ( 1 , sizeof ( DEV_INFO_WIDTH ) ) ; node -> device = strdup ( device ) ; node -> width = width ; fb_hListDynElemAdd ( list , & node -> elem ) ; return node ; }
Allocate a new device info node.
Allocate a new device info node .