applet_metadata.h 624 B

123456789101112131415161718192021222324252627282930
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  4. */
  5. #ifndef APPLET_METADATA_H
  6. #define APPLET_METADATA_H 1
  7. /* Note: can be included by both host and target builds! */
  8. /* order matters: used as index into "install_dir[]" in appletlib.c */
  9. typedef enum bb_install_loc_t {
  10. BB_DIR_ROOT = 0,
  11. BB_DIR_BIN,
  12. BB_DIR_SBIN,
  13. #if ENABLE_INSTALL_NO_USR
  14. BB_DIR_USR_BIN = BB_DIR_BIN,
  15. BB_DIR_USR_SBIN = BB_DIR_SBIN,
  16. #else
  17. BB_DIR_USR_BIN,
  18. BB_DIR_USR_SBIN,
  19. #endif
  20. } bb_install_loc_t;
  21. typedef enum bb_suid_t {
  22. BB_SUID_DROP = 0,
  23. BB_SUID_MAYBE,
  24. BB_SUID_REQUIRE
  25. } bb_suid_t;
  26. #endif