X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bf6dcd17133e4e29e09420e3252a4184be3b04b6..87a57a3072c0fe742b154bd62869cc08c65625bb:/t_stub.c diff --git a/t_stub.c b/t_stub.c index 8cc3bf07..055bd7ef 100644 --- a/t_stub.c +++ b/t_stub.c @@ -28,7 +28,8 @@ int modify_window = 0; int module_id = -1; -struct exclude_list_struct server_exclude_list; +char *partial_dir; +struct filter_list_struct server_filter_list; void rprintf(UNUSED(enum logcode code), const char *format, ...) { @@ -38,6 +39,16 @@ struct exclude_list_struct server_exclude_list; 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", @@ -45,8 +56,8 @@ struct exclude_list_struct server_exclude_list; exit(code); } - int check_exclude(UNUSED(struct exclude_list_struct *listp), UNUSED(char *name), - UNUSED(int name_is_dir), UNUSED(const char *type)) + 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. */