Monado OpenXR Runtime
Typedefs | Functions
u_hashmap.h File Reference

Hashmap for integer values header. More...

#include "xrt/xrt_compiler.h"
Include dependency graph for u_hashmap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* u_hashmap_int_callback) (void *item, void *priv)
 

Functions

int u_hashmap_int_create (struct u_hashmap_int **out_hashmap)
 
int u_hashmap_int_destroy (struct u_hashmap_int **hmi)
 
int u_hashmap_int_find (struct u_hashmap_int *hmi, uint64_t key, void **out_item)
 
int u_hashmap_int_insert (struct u_hashmap_int *hmi, uint64_t key, void *value)
 
int u_hashmap_int_erase (struct u_hashmap_int *hmi, uint64_t key)
 
void u_hashmap_int_clear_and_call_for_each (struct u_hashmap_int *hmi, u_hashmap_int_callback cb, void *priv)
 First clear the hashmap and then call the given callback with each item that was in the hashmap. More...
 

Detailed Description

Hashmap for integer values header.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Typedef Documentation

◆ u_hashmap_int_callback

typedef void(* u_hashmap_int_callback) (void *item, void *priv)

Function Documentation

◆ u_hashmap_int_create()

int u_hashmap_int_create ( struct u_hashmap_int **  out_hashmap)

◆ u_hashmap_int_destroy()

int u_hashmap_int_destroy ( struct u_hashmap_int **  hmi)

◆ u_hashmap_int_erase()

int u_hashmap_int_erase ( struct u_hashmap_int hmi,
uint64_t  key 
)

References u_hashmap_int::map.

◆ u_hashmap_int_find()

int u_hashmap_int_find ( struct u_hashmap_int hmi,
uint64_t  key,
void **  out_item 
)

References u_hashmap_int::map.

◆ u_hashmap_int_insert()

int u_hashmap_int_insert ( struct u_hashmap_int hmi,
uint64_t  key,
void *  value 
)

References u_hashmap_int::map.