radare2/libr/include/r_pdb.h
2016-09-01 14:30:12 +02:00

40 lines
720 B
C

#ifndef R2_PDB_H
#define R2_PDB_H
#define _R_LIST_C
#include "r_util.h"
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
#define FILE_NAME_LEN 256
struct R_PDB;
struct R_PDB7_ROOT_STREAM;
typedef struct R_PDB {
bool (*pdb_parse)(struct R_PDB *pdb);
void (*finish_pdb_parse)(struct R_PDB *pdb);
void (*print_types)(struct R_PDB *pdb, int mode);
// FILE *fp;
PrintfCallback cb_printf;
struct R_PDB7_ROOT_STREAM *root_stream;
void *stream_map;
RList *pdb_streams;
RList *pdb_streams2;
RBuffer *buf; // mmap of file
// int curr;
void (*print_gvars)(struct R_PDB *pdb, ut64 img_base, int format);
} R_PDB;
bool init_pdb_parser(R_PDB *pdb, const char *filename);
#ifdef __cplusplus
}
#endif
#endif