58 } Progress; |
58 } Progress; |
59 |
59 |
60 typedef int(*getfunc)(Repository *, GetResource *, CmdArgs *, void *); |
60 typedef int(*getfunc)(Repository *, GetResource *, CmdArgs *, void *); |
61 |
61 |
62 void print_usage(char *cmd); |
62 void print_usage(char *cmd); |
63 char* password_input(char *prompt); |
|
64 int request_auth(Repository *repo, DavSession *sn, CmdArgs *args); |
63 int request_auth(Repository *repo, DavSession *sn, CmdArgs *args); |
65 |
64 |
66 int update_progress(DavResource *res, int64_t total, int64_t now, Progress *p); |
65 int update_progress(DavResource *res, int64_t total, int64_t now, Progress *p); |
67 void download_progress(DavResource *res, int64_t total, int64_t now, void *data); |
66 void download_progress(DavResource *res, int64_t total, int64_t now, void *data); |
68 |
67 |
102 int cmd_add_repository(CmdArgs *args); |
101 int cmd_add_repository(CmdArgs *args); |
103 int cmd_remove_repository(CmdArgs *args); |
102 int cmd_remove_repository(CmdArgs *args); |
104 |
103 |
105 int cmd_repository_url(CmdArgs *args); |
104 int cmd_repository_url(CmdArgs *args); |
106 |
105 |
|
106 int cmd_add_user(CmdArgs *args); |
|
107 |
107 int shell_completion(CmdArgs *args, int index); |
108 int shell_completion(CmdArgs *args, int index); |
108 |
109 |
109 int url_completion(char *url); |
110 int url_completion(char *url); |
110 |
111 |
111 #ifdef __cplusplus |
112 #ifdef __cplusplus |