2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
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.
15 * Research Systems Unix Group
16 * The University of Michigan
18 * 535 W. William Street
21 * netatalk@itd.umich.edu
24 #ifndef AFPD_DESKTOP_H
25 #define AFPD_DESKTOP_H 1
27 #include <sys/cdefs.h>
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
38 u_char sdt_creator[ 4 ];
44 typedef unsigned char CreatorType[4];
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[];
51 #define validupath(vol, name) ((((vol)->v_flags & AFPVOL_USEDOTS) ? \
52 (strncasecmp((name),".Apple", 6) && \
53 strcasecmp((name), ".Parent")) : (name)[0] != '.'))
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 *));