summaryrefslogtreecommitdiffstats
path: root/tdelfeditor/tdelfeditor.h
blob: 6cfdeddfc385a94d6677d303e0f004fa432ff70a (plain)
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
33
34
35
36
37
38
39
40
#ifndef __ELFRES_H
#define __ELFRES_H

#define VERSION "0.0.1"
#define PACKAGE "elfres"

/* Handle ELF Resources */
extern "C" {
	#include <libr.h>
	#include <libr-icons.h>
}

/* Handle strings */
#include <string.h>

/* Obtain file information */
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>

/* Handle exit cases and errors */
#include <sysexits.h>

#ifndef FALSE
	#define FALSE 0
#endif
#ifndef TRUE
	#define TRUE 1
#endif

#define ERROR           -1
#define ERROR_BUF        1024
#define ELFICON_OPTIONS  9
#define ICON_SECTION     ".icon"
#define con_err(...)     fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
#define errorf(...)      con_err(__VA_ARGS__)

#define ELFRES_OPTIONS    5

#endif /* __ELFRES_H */