Remove _() and N_() from platform.h. #define them as NOP macros in the two
[oweals/busybox.git] / include / busybox.h
1 /* vi: set sw=4 ts=4: */
2 /*
3  * Busybox main internal header file
4  *
5  * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6  */
7 #ifndef _BB_INTERNAL_H_
8 #define _BB_INTERNAL_H_    1
9
10 #include "bb_config.h"
11
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <stdarg.h>
15 #include <sys/types.h>
16 #include <sys/stat.h>
17
18 extern const char BB_BANNER[];
19
20 /* Pull in the utility routines from libbb */
21 #include "libbb.h"
22
23 enum Location {
24         _BB_DIR_ROOT = 0,
25         _BB_DIR_BIN,
26         _BB_DIR_SBIN,
27         _BB_DIR_USR_BIN,
28         _BB_DIR_USR_SBIN
29 };
30
31 enum SUIDRoot {
32         _BB_SUID_NEVER = 0,
33         _BB_SUID_MAYBE,
34         _BB_SUID_ALWAYS
35 };
36
37 struct BB_applet {
38         const char *name;
39         int (*main) (int argc, char **argv);
40         __extension__ enum Location location:4;
41         __extension__ enum SUIDRoot need_suid:4;
42 };
43
44 /* From busybox.c */
45 extern const struct BB_applet applets[];
46
47 /* Automagically pull in all the applet function prototypes and
48  * applet usage strings.  These are all of the form:
49  *              extern int foo_main(int argc, char **argv);
50  *              extern const char foo_usage[];
51  * These are all autogenerated from the set of currently defined applets.
52  */
53 #define PROTOTYPES
54 #include "applets.h"
55 #undef PROTOTYPES
56
57 #ifndef RB_POWER_OFF
58 /* Stop system and switch power off if possible.  */
59 #define RB_POWER_OFF   0x4321fedc
60 #endif
61
62 /* Try to pull in PATH_MAX */
63 #include <limits.h>
64
65 /* for PATH_MAX on systems that don't have it in limits.h */
66 #include <sys/param.h>
67 #ifndef PATH_MAX
68 #define  PATH_MAX         256
69 #endif
70
71 #ifdef DMALLOC
72 #include <dmalloc.h>
73 #endif
74
75 #endif                                                  /* _BB_INTERNAL_H_ */