fileloc.h 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_MACRO_FILE "mc.macros"
  27. #define VFS_SHELL_PREFIX "shell"
  28. #define VFS_SHELL_LS_FILE "ls"
  29. #define VFS_SHELL_EXISTS_FILE "fexists"
  30. #define VFS_SHELL_MKDIR_FILE "mkdir"
  31. #define VFS_SHELL_UNLINK_FILE "unlink"
  32. #define VFS_SHELL_CHOWN_FILE "chown"
  33. #define VFS_SHELL_CHMOD_FILE "chmod"
  34. #define VFS_SHELL_UTIME_FILE "utime"
  35. #define VFS_SHELL_RMDIR_FILE "rmdir"
  36. #define VFS_SHELL_LN_FILE "ln"
  37. #define VFS_SHELL_MV_FILE "mv"
  38. #define VFS_SHELL_HARDLINK_FILE "hardlink"
  39. #define VFS_SHELL_GET_FILE "get"
  40. #define VFS_SHELL_SEND_FILE "send"
  41. #define VFS_SHELL_APPEND_FILE "append"
  42. #define VFS_SHELL_INFO_FILE "info"
  43. #define MC_EXTFS_DIR "extfs.d"
  44. #define MC_BASHRC_FILE "bashrc"
  45. #define MC_ZSHRC_FILE ".zshrc"
  46. #define MC_ASHRC_FILE "ashrc"
  47. #define MC_INPUTRC_FILE "inputrc"
  48. #define MC_CONFIG_FILE "ini"
  49. #define MC_EXT_FILE "mc.ext.ini"
  50. #define MC_EXT_OLD_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_CLIP_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.clip"
  64. #define EDIT_HOME_BLOCK_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.block"
  65. #define EDIT_HOME_TEMP_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.temp"
  66. #define EDIT_SYNTAX_DIR "syntax"
  67. #define EDIT_SYNTAX_FILE EDIT_SYNTAX_DIR PATH_SEP_STR "Syntax"
  68. #define EDIT_GLOBAL_MENU "mcedit.menu"
  69. #define EDIT_LOCAL_MENU ".cedit.menu"
  70. #define EDIT_HOME_MENU EDIT_HOME_DIR PATH_SEP_STR "menu"
  71. /*** enums ***************************************************************************************/
  72. /*** structures declarations (and typedefs of structures)*****************************************/
  73. /*** global variables defined in .c file *********************************************************/
  74. /*** declarations of public functions ************************************************************/
  75. /*** inline functions ****************************************************************************/
  76. #endif