dav/main.h

changeset 14
d1a43035d3a2
parent 11
5db6178d8b58
child 15
182af08b4813
equal deleted inserted replaced
13:8a0cc4d90de7 14:d1a43035d3a2
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2012 Olaf Wintermann. All rights reserved. 4 * Copyright 2013 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
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 #include "optparser.h"
34 #include "webdav.h"
34 35
35 #ifdef __cplusplus 36 #ifdef __cplusplus
36 extern "C" { 37 extern "C" {
37 #endif 38 #endif
38 39
39 void print_usage(char *cmd); 40 void print_usage(char *cmd);
40 41
41 int cmd_list(CmdArgs *args); 42 int cmd_list(CmdArgs *args);
43 void ls_print_list_elm(DavResource *res, CmdArgs *args);
44 void ls_print_elm(DavResource *res, CmdArgs *args);
45
42 int cmd_get(CmdArgs *args); 46 int cmd_get(CmdArgs *args);
43 int cmd_put(CmdArgs *args); 47 int cmd_put(CmdArgs *args);
44 48
45 #ifdef __cplusplus 49 #ifdef __cplusplus
46 } 50 }

mercurial