netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
virtual_icon.h
Go to the documentation of this file.
1#ifndef AFPD_VIRTUAL_ICON_H
2#define AFPD_VIRTUAL_ICON_H
3
4#include <atalk/globals.h>
5
6#include "volume.h"
7
9#define VIRTUAL_ICON_NAME "Icon\x0D"
10
12#define VIRTUAL_ICON_CNID 16
13
18#define RFORK_HEADER_SIZE 16
19
21#define RFORK_DATA_LEN_OFF 8
22
23 int virtual_icon_enabled(const struct vol *vol);
24 int is_virtual_icon_name(const char *name);
25 int real_icon_exists(const struct vol *vol);
26
27 void virtual_icon_init(struct vol *vol);
28 const unsigned char *virtual_icon_get_rfork(const struct vol *vol,
29 size_t *outlen);
30
31 int virtual_icon_getfilparams(const AFPObj *obj,
32 struct vol *vol,
33 uint16_t bitmap,
34 char *buf,
35 size_t *buflen);
36
37#endif /* AFPD_VIRTUAL_ICON_H */
buf
static char buf[MAXPATHLEN+1]
Definition afppasswd.c:113
volume.h
globals.h
obj
static AFPObj obj
Definition netatalk.c:69
AFPObj
Definition globals.h:166
vol
Definition include/atalk/volume.h:33
virtual_icon_init
void virtual_icon_init(struct vol *vol)
Definition virtual_icon.c:238
virtual_icon_get_rfork
const unsigned char * virtual_icon_get_rfork(const struct vol *vol, size_t *outlen)
Definition virtual_icon.c:295
is_virtual_icon_name
int is_virtual_icon_name(const char *name)
Definition virtual_icon.c:233
real_icon_exists
int real_icon_exists(const struct vol *vol)
Definition virtual_icon.c:225
virtual_icon_enabled
int virtual_icon_enabled(const struct vol *vol)
Definition virtual_icon.c:220
virtual_icon_getfilparams
int virtual_icon_getfilparams(const AFPObj *obj, struct vol *vol, uint16_t bitmap, char *buf, size_t *buflen)
Synthesize AFP file parameters for the virtual Icon\r file.
Definition virtual_icon.c:313