1 /* vi: set sw=4 ts=4: */
3 * Busybox main internal header file
5 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
7 #ifndef _BB_INTERNAL_H_
8 #define _BB_INTERNAL_H_ 1
12 /* order matters: used as index into "install_dir[]" in busybox.c */
29 int (*main) (int argc, char **argv);
30 __extension__ enum Location location:4;
31 __extension__ enum SUIDRoot need_suid:4;
34 /* From busybox.c and applet.c */
35 extern const struct BB_applet applets[];
36 extern const unsigned short NUM_APPLETS;
38 /* Automagically pull in all the applet function prototypes and
39 * applet usage strings. These are all of the form:
40 * extern int foo_main(int argc, char **argv);
41 * extern const char foo_usage[];
42 * These are all autogenerated from the set of currently defined applets.
48 #endif /* _BB_INTERNAL_H_ */