netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
desktop.h
Go to the documentation of this file.
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 <atalk/globals.h>
28
29#include "volume.h"
30
31#define APPLEDESKTOP ".AppleDesktop"
32
33 struct savedt {
34 uint8_t sdt_creator[4];
35 int sdt_fd;
36 int sdt_index;
37 short sdt_vid;
38};
39
40 typedef unsigned char CreatorType[4];
41
42 extern char *dtfile(const struct vol *, uint8_t [], char *);
43 extern char *mtoupath(const struct vol *, char *, cnid_t, int utf8);
44 extern char *utompath(const struct vol *, char *, cnid_t, int utf8);
45
46 extern int setdeskmode(const struct vol *vol, const mode_t mode);
47 extern int setdeskowner(const struct vol *vol, uid_t uid, gid_t gid);
48
49/* FP functions */
50 int afp_opendt(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
51 size_t *rbuflen);
52 int afp_addcomment(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
53 size_t *rbuflen);
54 int afp_getcomment(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
55 size_t *rbuflen);
56 int afp_rmvcomment(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
57 size_t *rbuflen);
58 int afp_addappl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
59 size_t *rbuflen);
60 int afp_rmvappl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
61 size_t *rbuflen);
62 int afp_getappl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
63 size_t *rbuflen);
64 int afp_closedt(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
65 size_t *rbuflen);
66 int afp_addicon(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
67 size_t *rbuflen);
68 int afp_geticoninfo(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
69 size_t *rbuflen);
70 int afp_geticon(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
71 size_t *rbuflen);
72
73#endif
cnid_t
uint32_t cnid_t
Definition adouble.h:156
rbuflen
static size_t rbuflen
Definition afpfunc_helpers.c:45
rbuf
static char rbuf[rbufsize]
Definition afpfunc_helpers.c:44
afp_addcomment
int afp_addcomment(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:1006
mtoupath
char * mtoupath(const struct vol *, char *, cnid_t, int utf8)
Definition desktop.c:846
dtfile
char * dtfile(const struct vol *, uint8_t[], char *)
Definition desktop.c:798
afp_opendt
int afp_opendt(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:272
afp_getappl
int afp_getappl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition appl.c:452
afp_rmvappl
int afp_rmvappl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition appl.c:351
setdeskowner
int setdeskowner(const struct vol *vol, uid_t uid, gid_t gid)
Definition desktop.c:165
setdeskmode
int setdeskmode(const struct vol *vol, const mode_t mode)
Definition desktop.c:56
CreatorType
unsigned char CreatorType[4]
Definition desktop.h:40
afp_closedt
int afp_closedt(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:291
afp_geticoninfo
int afp_geticoninfo(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:566
afp_addicon
int afp_addicon(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:362
utompath
char * utompath(const struct vol *, char *, cnid_t, int utf8)
Definition desktop.c:887
afp_addappl
int afp_addappl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition appl.c:216
afp_getcomment
int afp_getcomment(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:1101
afp_geticon
int afp_geticon(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:644
afp_rmvcomment
int afp_rmvcomment(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition desktop.c:1207
volume.h
globals.h
obj
static AFPObj obj
Definition netatalk.c:69
AFPObj
Definition globals.h:166
savedt
Definition desktop.h:33
savedt::sdt_index
int sdt_index
Definition desktop.h:36
savedt::sdt_fd
int sdt_fd
Definition desktop.h:35
savedt::sdt_vid
short sdt_vid
Definition desktop.h:37
savedt::sdt_creator
uint8_t sdt_creator[4]
Definition desktop.h:34
vol
Definition include/atalk/volume.h:33