res_id_t
res_id_t id;
add_resource(res_id_t id, type_code code, data_t data)
add_user_type(res_id_t id, type_code code, const char* name, list_t list)
static void add_user_type(res_id_t, type_code, const char*, list_t);
static void add_resource(res_id_t, type_code, data_t);