]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/desktop.h
f766c7579c8290d5bdb4f2177acde7e9bad2588f
[netatalk.git] / etc / afpd / desktop.h
1 /*
2  * $Id: desktop.h,v 1.3 2003-03-09 19:55:33 didg Exp $
3  *
4  * Copyright (c) 1990,1991 Regents of The University of Michigan.
5  * All Rights Reserved.
6  *
7  * Permission to use, copy, modify, and distribute this software and
8  * its documentation for any purpose and without fee is hereby granted,
9  * provided that the above copyright notice appears in all copies and
10  * that both that copyright notice and this permission notice appear
11  * in supporting documentation, and that the name of The University
12  * of Michigan not be used in advertising or publicity pertaining to
13  * distribution of the software without specific, written prior
14  * permission. This software is supplied as is without expressed or
15  * implied warranties of any kind.
16  *
17  *      Research Systems Unix Group
18  *      The University of Michigan
19  *      c/o Mike Clark
20  *      535 W. William Street
21  *      Ann Arbor, Michigan
22  *      +1-313-763-0525
23  *      netatalk@itd.umich.edu
24  */
25
26 #ifndef AFPD_DESKTOP_H
27 #define AFPD_DESKTOP_H 1
28
29 #include <sys/cdefs.h>
30 #include "globals.h"
31 #include "volume.h"
32
33 /* various finder info bits */
34 #define FINDERINFO_FRFLAGOFF   8
35 #define FINDERINFO_FRVIEWOFF  14 
36 #define FINDERINFO_INVISIBLE  (1<<14)
37 #define FINDERINFO_CLOSEDVIEW 0x100   
38
39 struct savedt {
40     u_char      sdt_creator[ 4 ];
41     int         sdt_fd;
42     int         sdt_index;
43     short       sdt_vid;
44 };
45
46 typedef unsigned char CreatorType[4];
47
48 extern char     *dtfile __P((const struct vol *, u_char [], char *));
49 extern char     *mtoupath __P((const struct vol *, char *, int utf8));
50 extern char     *utompath __P((const struct vol *, char *, int utf8));
51 extern u_char   ucreator[];
52
53 #define validupath(vol, name) ((((vol)->v_flags & AFPVOL_USEDOTS) ? \
54    (strncasecmp((name),".Apple", 6) && \
55     strcasecmp((name), ".Parent")) : (name)[0] != '.'))
56
57 /* FP functions */
58 extern int      afp_opendt __P((AFPObj *, char *, int, char *, int *));
59 extern int      afp_addcomment __P((AFPObj *, char *, int, char *, int *));
60 extern int      afp_getcomment __P((AFPObj *, char *, int, char *, int *));
61 extern int      afp_rmvcomment __P((AFPObj *, char *, int, char *, int *));
62 extern int      afp_addappl __P((AFPObj *, char *, int, char *, int *));
63 extern int      afp_rmvappl __P((AFPObj *, char *, int, char *, int *));
64 extern int      afp_getappl __P((AFPObj *, char *, int, char *, int *));
65 extern int      afp_closedt __P((AFPObj *, char *, int, char *, int *));
66 extern int      afp_addicon __P((AFPObj *, char *, int, char *, int *));
67 extern int      afp_geticoninfo __P((AFPObj *, char *, int, char *, int *));
68 extern int      afp_geticon __P((AFPObj *, char *, int, char *, int *));
69
70 #endif