blob: da2b1f0f8d6cdb8c3ea6d0f65167a7dec589f51b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef __LIBRARIAN_PRIVATE_H_
#define __LIBRARIAN_PRIVATE_H_
#include <stdint.h>
#include "custommem.h"
#include "khash.h"
typedef struct box64context_s box64context_t;
typedef struct kh_mapsymbols_s kh_mapsymbols_t;
typedef char* cstr_t;
KHASH_MAP_DECLARE_INT(mapoffsets, cstr_t);
typedef struct lib_s {
khash_t(mapsymbols) *mapsymbols;
khash_t(mapsymbols) *weaksymbols;
khash_t(mapsymbols) *localsymbols;
khash_t(mapoffsets) *mapoffsets;
khash_t(mapsymbols) *globaldata;
library_t **libraries;
int libsz;
int libcap;
int ownlibs;
library_t *owner; // in case that maplib is owned by a lib
box64context_t* context;
bridge_t *bridge; // all x86 -> arm bridge
} lib_t;
#endif //__LIBRARIAN_PRIVATE_H_
|