X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cd8e38b13f9c7e3a0be54f77819b90376aada291..32cbfe7b17ba8ec661fc27fd773909709d100e8a:/t_stub.c diff --git a/t_stub.c b/t_stub.c index 27ce7d1a..055bd7ef 100644 --- a/t_stub.c +++ b/t_stub.c @@ -27,8 +27,11 @@ **/ int modify_window = 0; +int module_id = -1; +char *partial_dir; +struct filter_list_struct server_filter_list; - void rprintf(enum logcode UNUSED(code), const char *format, ...) + void rprintf(UNUSED(enum logcode code), const char *format, ...) { va_list ap; va_start(ap, format); @@ -36,9 +39,43 @@ int modify_window = 0; va_end(ap); } + void rsyserr(UNUSED(enum logcode code), int errcode, const char *format, ...) +{ + va_list ap; + fputs(RSYNC_NAME ": ", stderr); + va_start(ap, format); + vfprintf(stderr, format, ap); + va_end(ap); + fprintf(stderr, ": %s (%d)\n", strerror(errcode), errcode); +} + void _exit_cleanup(int code, const char *file, int line) { fprintf(stderr, "exit(%d): %s(%d)\n", code, file, line); exit(code); } + + int check_filter(UNUSED(struct filter_list_struct *listp), UNUSED(char *name), + UNUSED(int name_is_dir)) +{ + /* This function doesn't really get called in this test context, so + * just return 0. */ + return 0; +} + + char *lp_name(UNUSED(int mod)) +{ + return NULL; +} + + BOOL lp_use_chroot(UNUSED(int mod)) +{ + return 0; +} + + char *lp_path(UNUSED(int mod)) +{ + return NULL; +} +