diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-09-02 11:05:50 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-09-02 11:05:50 -0400 |
commit | b67d8c33c9f21d49a07a2ecb3b978fed3a42edae (patch) | |
tree | 2ff3a99c23031878ec1e9b1af95d2480755fc39d | |
parent | 2ee3f932726102e3854e6458e3890f2eb94f94be (diff) | |
download | multihome-b67d8c33c9f21d49a07a2ecb3b978fed3a42edae.tar.gz |
Add MULTIHOME_* defines to reduce string duplications
* Added COPY_UPDATE define for updated copy() signature
-rw-r--r-- | multihome.h | 10 |
1 files changed, 9 insertions, 1 deletions
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); \ |