dav/main.h

changeset 11
5db6178d8b58
parent 5
88625853ae74
child 14
d1a43035d3a2
equal deleted inserted replaced
10:e6d0fbe0ebd9 11:5db6178d8b58
28 28
29 #ifndef MAIN_H 29 #ifndef MAIN_H
30 #define MAIN_H 30 #define MAIN_H
31 31
32 #include <curl/curl.h> 32 #include <curl/curl.h>
33 #include "optparser.h"
33 34
34 #ifdef __cplusplus 35 #ifdef __cplusplus
35 extern "C" { 36 extern "C" {
36 #endif 37 #endif
37 38
38 void print_usage(); 39 void print_usage(char *cmd);
39 void get_file(CURL *curl, char *url, char *path);
40 void put_file(CURL *curl, char *url, char *path);
41 40
42 int cmd_list(int argc, char **argv); 41 int cmd_list(CmdArgs *args);
43 int cmd_get(int argc, char **argv); 42 int cmd_get(CmdArgs *args);
44 int cmd_put(int argc, char **argv); 43 int cmd_put(CmdArgs *args);
45 44
46 #ifdef __cplusplus 45 #ifdef __cplusplus
47 } 46 }
48 #endif 47 #endif
49 48

mercurial