fileloc.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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_ZSHRC_FILE ".zshrc"
  47. #define MC_ASHRC_FILE "ashrc"
  48. #define MC_INPUTRC_FILE "inputrc"
  49. #define MC_CONFIG_FILE "ini"
  50. #define MC_FILEBIND_FILE "mc.ext"
  51. #define MC_FILEPOS_FILE "filepos"
  52. #define MC_HISTORY_FILE "history"
  53. #define MC_HOTLIST_FILE "hotlist"
  54. #define MC_USERMENU_FILE "menu"
  55. #define MC_TREESTORE_FILE "Tree"
  56. #define MC_PANELS_FILE "panels.ini"
  57. #define MC_FHL_INI_FILE "filehighlight.ini"
  58. #define MC_SKINS_DIR "skins"
  59. /* editor home directory */
  60. #define EDIT_HOME_DIR "mcedit"
  61. /* file names */
  62. #define EDIT_HOME_MACRO_FILE EDIT_HOME_DIR PATH_SEP_STR "macros.d" PATH_SEP_STR "macro"
  63. #define EDIT_HOME_SYNTAX_FILE EDIT_HOME_DIR PATH_SEP_STR "Syntax"
  64. #define EDIT_HOME_CLIP_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.clip"
  65. #define EDIT_HOME_BLOCK_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.block"
  66. #define EDIT_HOME_TEMP_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.temp"
  67. #define EDIT_GLOBAL_MENU "mcedit.menu"
  68. #define EDIT_LOCAL_MENU ".cedit.menu"
  69. #define EDIT_HOME_MENU EDIT_HOME_DIR PATH_SEP_STR "menu"
  70. /*** enums ***************************************************************************************/
  71. /*** structures declarations (and typedefs of structures)*****************************************/
  72. /*** global variables defined in .c file *********************************************************/
  73. /*** declarations of public functions ************************************************************/
  74. /*** inline functions ****************************************************************************/
  75. #endif