-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsegappend.h
More file actions
23 lines (19 loc) · 873 Bytes
/
segappend.h
File metadata and controls
23 lines (19 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef SEGAPPEND_H
#define SEGAPPEND_H
typedef enum segappend_status : unsigned int {
segappend_ok,
segappend_segment_not_found,
segappend_file_not_found,
segappend_linkedit_not_found,
segappend_cannot_write,
segappend_invalid_binary,
} segappend_status;
extern "C" segappend_status segappend_create_segment(const char *binary_path,
const char *segment_name,
const void *data,
unsigned long size,
const char *output_path);
extern "C" segappend_status segappend_load_segment(const char *segment_name,
void **data,
unsigned long *size);
#endif