1 #ifndef _RESTORE_CLIENT_H
2 #define _RESTORE_CLIENT_H
3 
4 enum ofr_e
5 {
6 	OFR_ERROR=-1,
7 	OFR_OK=0,
8 	OFR_CONTINUE
9 };
10 
11 extern enum ofr_e open_for_restore(struct asfd *asfd, struct BFILE *bfd,
12 	const char *path, struct sbuf *sb, enum vss_restore vss_restore,
13 	struct cntr *cntr, enum protocol protocol);
14 
15 extern int do_restore_client(struct asfd *asfd,
16 	struct conf **confs, enum action act);
17 
18 // These are for the protocol1 restore to use, until it is unified more fully
19 // with protocol2.
20 extern int restore_dir(struct asfd *asfd,
21 	struct sbuf *sb, const char *dname, enum action act, struct cntr *cntr,
22 	enum protocol protocol);
23 extern int restore_interrupt(struct asfd *asfd,
24 	struct sbuf *sb, const char *msg, struct cntr *cntr,
25 	enum protocol protocol);
26 
27 #ifdef UTEST
28 extern void strip_from_path(char *path, const char *strip);
29 #endif
30 
31 #endif
32