Example #1
0
/* map_t */
void _type_init_map(const void* cpv_input, void* pv_output)
{
    bool_t b_result = false;
    assert(cpv_input != NULL && pv_output != NULL);

    b_result = _create_map_auxiliary((map_t*)cpv_input, (char*)pv_output);
    assert(b_result);
    map_init((map_t*)cpv_input);
}
Example #2
0
/**
 * Create map container.
 */
map_t* _create_map(const char* s_typename)
{
    map_t* pmap_map = NULL;

    if((pmap_map = (map_t*)malloc(sizeof(map_t))) == NULL)
    {
        return NULL;
    }

    if(!_create_map_auxiliary(pmap_map, s_typename))
    {
        free(pmap_map);
        return NULL;
    }

    return pmap_map;
}