fileloc.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /** \file fileloc.h
  2. * \brief Header: config files list
  3. *
  4. * This file defines the locations of the various user specific
  5. * configuration files of the Midnight Commander. Historically the
  6. * system wide and the user specific file names have not always been
  7. * the same, so don't use these names for finding system wide
  8. * configuration files.
  9. *
  10. * \todo This inconsistency should disappear in the one of the next versions (5.0?)
  11. */
  12. #ifndef MC_FILELOC_H
  13. #define MC_FILELOC_H
  14. /*** typedefs(not structures) and defined constants **********************************************/
  15. #ifndef MC_USERCONF_DIR
  16. #define MC_USERCONF_DIR "mc"
  17. #endif
  18. #define TAGS_NAME "TAGS"
  19. #define MC_GLOBAL_CONFIG_FILE "mc.lib"
  20. #define MC_GLOBAL_MENU "mc.menu"
  21. #define MC_LOCAL_MENU ".mc.menu"
  22. #define MC_HINT "hints" PATH_SEP_STR "mc.hint"
  23. #define MC_HELP "help" PATH_SEP_STR "mc.hlp"
  24. #define GLOBAL_KEYMAP_FILE "mc.keymap"
  25. #define CHARSETS_LIST "mc.charsets"
  26. #define MC_LIB_EXT "mc.ext"
  27. #define MC_MACRO_FILE "mc.macros"
  28. #define FISH_PREFIX "fish"
  29. #define FISH_LS_FILE "ls"
  30. #define FISH_EXISTS_FILE "fexists"
  31. #define FISH_MKDIR_FILE "mkdir"
  32. #define FISH_UNLINK_FILE "unlink"
  33. #define FISH_CHOWN_FILE "chown"
  34. #define FISH_CHMOD_FILE "chmod"
  35. #define FISH_UTIME_FILE "utime"
  36. #define FISH_RMDIR_FILE "rmdir"
  37. #define FISH_LN_FILE "ln"
  38. #define FISH_MV_FILE "mv"
  39. #define FISH_HARDLINK_FILE "hardlink"
  40. #define FISH_GET_FILE "get"
  41. #define FISH_SEND_FILE "send"
  42. #define FISH_APPEND_FILE "append"
  43. #define FISH_INFO_FILE "info"
  44. #define MC_EXTFS_DIR "extfs.d"
  45. #define MC_BASHRC_FILE "bashrc"
  46. #define MC_CONFIG_FILE "ini"
  47. #define MC_FILEBIND_FILE "mc.ext"
  48. #define MC_FILEPOS_FILE "filepos"
  49. #define MC_HISTORY_FILE "history"
  50. #define MC_HOTLIST_FILE "hotlist"
  51. #define MC_USERMENU_FILE "menu"
  52. #define MC_TREESTORE_FILE "Tree"
  53. #define MC_PANELS_FILE "panels.ini"
  54. #define MC_FHL_INI_FILE "filehighlight.ini"
  55. #define MC_SKINS_SUBDIR "skins"
  56. /* editor home directory */
  57. #define EDIT_DIR "mcedit"
  58. /* file names */
  59. #define MC_EXTMACRO_FILE EDIT_DIR PATH_SEP_STR "macros.d" PATH_SEP_STR "macro"
  60. #define EDIT_SYNTAX_FILE EDIT_DIR PATH_SEP_STR "Syntax"
  61. #define EDIT_CLIP_FILE EDIT_DIR PATH_SEP_STR "mcedit.clip"
  62. #define EDIT_BLOCK_FILE EDIT_DIR PATH_SEP_STR "mcedit.block"
  63. #define EDIT_TEMP_FILE EDIT_DIR PATH_SEP_STR "mcedit.temp"
  64. #define EDIT_GLOBAL_MENU "mcedit.menu"
  65. #define EDIT_LOCAL_MENU ".cedit.menu"
  66. #define EDIT_HOME_MENU EDIT_DIR PATH_SEP_STR "menu"
  67. /*** enums ***************************************************************************************/
  68. /*** structures declarations (and typedefs of structures)*****************************************/
  69. /*** global variables defined in .c file *********************************************************/
  70. /*** declarations of public functions ************************************************************/
  71. /*** inline functions ****************************************************************************/
  72. #endif