Blame kpatch-build/lookup.h
|
Packit Service |
ac8aad |
#ifndef _LOOKUP_H_
|
|
Packit Service |
ac8aad |
#define _LOOKUP_H_
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
da4517 |
#include <stdbool.h>
|
|
Packit Service |
da4517 |
|
|
Packit Service |
ac8aad |
struct lookup_table;
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
struct lookup_result {
|
|
Packit Service |
da4517 |
char *objname;
|
|
Packit Service |
da4517 |
unsigned long addr;
|
|
Packit Service |
ac8aad |
unsigned long size;
|
|
Packit Service |
da4517 |
unsigned long sympos;
|
|
Packit Service |
da4517 |
bool global, exported;
|
|
Packit Service |
ac8aad |
};
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
struct sym_compare_type {
|
|
Packit Service |
ac8aad |
char *name;
|
|
Packit Service |
ac8aad |
int type;
|
|
Packit Service |
ac8aad |
};
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
da4517 |
struct lookup_table *lookup_open(char *symtab_path, char *objname,
|
|
Packit Service |
da4517 |
char *symvers_path, char *hint,
|
|
Packit Service |
da4517 |
struct sym_compare_type *locals);
|
|
Packit Service |
ac8aad |
void lookup_close(struct lookup_table *table);
|
|
Packit Service |
da4517 |
bool lookup_symbol(struct lookup_table *table, char *name,
|
|
Packit Service |
da4517 |
struct lookup_result *result);
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
#endif /* _LOOKUP_H_ */
|