1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2024-12-01 13:24:20 +01:00
rpi-vk-driver/driver/map.h

35 lines
479 B
C

#pragma once
#if defined (__cplusplus)
extern "C" {
#endif
#include <stdint.h>
#include "CustomAssert.h"
typedef struct
{
void* data;
uint32_t key;
} mapElem;
typedef struct
{
mapElem* elements;
uint32_t maxData;
} map;
void* getMapElement(map m, uint32_t key);
void setMapElement(map* m, uint32_t key, void* data);
void deleteMapElement(map* m, uint32_t key);
map createMap(void* buf, uint32_t maxData);
void destroyMap(map* m);
#if defined (__cplusplus)
}
#endif