fileloc.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_RMDIR_FILE "rmdir"
  36. #define FISH_LN_FILE "ln"
  37. #define FISH_MV_FILE "mv"
  38. #define FISH_HARDLINK_FILE "hardlink"
  39. #define FISH_GET_FILE "get"
  40. #define FISH_SEND_FILE "send"
  41. #define FISH_APPEND_FILE "append"
  42. #define FISH_INFO_FILE "info"
  43. #define MC_EXTFS_DIR "extfs.d"
  44. #define MC_BASHRC_FILE "bashrc"
  45. #define MC_CONFIG_FILE "ini"
  46. #define MC_FILEBIND_FILE "mc.ext"
  47. #define MC_FILEPOS_FILE "filepos"
  48. #define MC_HISTORY_FILE "history"
  49. #define MC_HOTLIST_FILE "hotlist"
  50. #define MC_USERMENU_FILE "menu"
  51. #define MC_TREESTORE_FILE "Tree"
  52. #define MC_PANELS_FILE "panels.ini"
  53. #define MC_FHL_INI_FILE "filehighlight.ini"
  54. #define MC_SKINS_SUBDIR "skins"
  55. /* editor home directory */
  56. #define EDIT_DIR "mcedit"
  57. /* file names */
  58. #define MC_EXTMACRO_FILE EDIT_DIR PATH_SEP_STR "macros.d" PATH_SEP_STR "macro"
  59. #define EDIT_SYNTAX_FILE EDIT_DIR PATH_SEP_STR "Syntax"
  60. #define EDIT_CLIP_FILE EDIT_DIR PATH_SEP_STR "mcedit.clip"
  61. #define EDIT_BLOCK_FILE EDIT_DIR PATH_SEP_STR "mcedit.block"
  62. #define EDIT_TEMP_FILE EDIT_DIR PATH_SEP_STR "mcedit.temp"
  63. #define EDIT_GLOBAL_MENU "mcedit.menu"
  64. #define EDIT_LOCAL_MENU ".cedit.menu"
  65. #define EDIT_HOME_MENU EDIT_DIR PATH_SEP_STR "menu"
  66. /*** enums ***************************************************************************************/
  67. /*** structures declarations (and typedefs of structures)*****************************************/
  68. /*** global variables defined in .c file *********************************************************/
  69. /*** declarations of public functions ************************************************************/
  70. /*** inline functions ****************************************************************************/
  71. #endif