From b67d8c33c9f21d49a07a2ecb3b978fed3a42edae Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 2 Sep 2020 11:05:50 -0400 Subject: Add MULTIHOME_* defines to reduce string duplications * Added COPY_UPDATE define for updated copy() signature --- multihome.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'multihome.h') diff --git a/multihome.h b/multihome.h index 6d157de..55ab6ce 100644 --- a/multihome.h +++ b/multihome.h @@ -27,8 +27,16 @@ #define VERSION "0.0.1" #define MULTIHOME_ROOT "home_local" -#define OS_SKEL_DIR "/etc/skel/" // NOTE: Trailing slash is required +#define MULTIHOME_TOPDIR "topdir" +#define MULTIHOME_CFGDIR ".multihome" +#define MULTIHOME_CFG_TRANSFER "transfer" +#define MULTIHOME_CFG_INIT "init" +#define MULTIHOME_CFG_SKEL "skel/" // NOTE: Trailing slash is required +#define MULTIHOME_MARKER ".multihome_controlled" +#define OS_SKEL_DIR "/etc/skel/" // NOTE: Trailing slash is required #define RSYNC_ARGS "-aq" +#define COPY_NORMAL 0 +#define COPY_UPDATE 1 #define DISABLE_BUFFERING \ setvbuf(stdout, NULL, _IONBF, 0); \ -- cgit