radare2/libr/include/r_util/r_mixed.h
2016-07-10 15:02:01 +02:00

23 lines
384 B
C

#ifndef R_MIXED_H
#define R_MIXED_H
#include <r_list.h>
#include "ht.h"
#define RMIXED_MAXKEYS 256
typedef struct r_mixed_data_t {
int size;
union {
RHashTable *ht;
RHashTable64 *ht64;
} hash;
} RMixedData;
typedef struct r_mixed_t {
RList *list;
RMixedData *keys[RMIXED_MAXKEYS];
ut64 state[RMIXED_MAXKEYS]; // used by change_(begin|end)
} RMixed;
#endif // R_MIXED_H