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