]> arthur.barton.de Git - netatalk.git/blob - bin/cnid/ad.h
call readt with ONE_DELAY = 5 s
[netatalk.git] / bin / cnid / ad.h
1 /* 
2    $Id: ad.h,v 1.1 2009-09-01 14:28:07 franklahm Exp $
3
4    Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10  
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15 */
16
17 #ifndef AD_H
18 #define AD_H
19
20 #include <atalk/volinfo.h>
21
22 #define STRCMP(a,b,c) (strcmp(a,c) b 0)
23
24 #define DIR_DOT_OR_DOTDOT(a) \
25         ((strcmp(a, ".") == 0) || (strcmp(a, "..") == 0))
26
27 typedef struct {
28     struct volinfo volinfo;
29 //    char *dirname;
30 //    char *basename;
31 //    int adflags;                /* file:0, dir:ADFLAGS_DIR */
32 } afpvol_t;
33
34
35 extern int newvol(const char *path, afpvol_t *vol);
36 extern void freevol(afpvol_t *vol);
37
38 extern int ad_ls(int argc, char **argv);
39 extern int ad_cp(int argc, char **argv);
40
41 #endif /* AD_H */