netatalk: mangle.h Source File

netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
mangle.h
Go to the documentation of this file.
1/*
2 *
3 */
4
5#ifndef AFPD_MANGLE_H
6#define AFPD_MANGLE_H 1
7
8#include <stdlib.h>
9#include <string.h>
10#include <unistd.h>
11
12#include <atalk/adouble.h>
13#include <atalk/cnid.h>
14#include <atalk/globals.h>
15#include <atalk/logger.h>
16
17#include "directory.h"
18#include "volume.h"
19
20#define MANGLE_CHAR '#'
21#define MAX_MANGLE_SUFFIX_LENGTH 999
22#define MAX_EXT_LENGTH 5
23#define MANGLE_LENGTH 9
24#define MAX_LENGTH MACFILELEN
25
26extern char *mangle(const struct vol *, char *, size_t, char *, cnid_t, int);
27extern char *demangle(const struct vol *, char *, cnid_t did);
28extern char *demangle_osx(const struct vol *, char *, cnid_t did,
29 cnid_t *fileid);
30
31#endif /* AFPD_MANGLE_H */
adouble.h
Part of Netatalk's AppleDouble implementatation.
cnid_t
uint32_t cnid_t
Definition adouble.h:156
cnid.h
directory.h
volume.h
globals.h
logger.h
demangle
char * demangle(const struct vol *, char *, cnid_t did)
Definition mangle.c:232
mangle
char * mangle(const struct vol *, char *, size_t, char *, cnid_t, int)
Definition mangle.c:265
demangle_osx
char * demangle_osx(const struct vol *, char *, cnid_t did, cnid_t *fileid)
Definition mangle.c:241
did
cnid_t did
Definition nad_cp.c:93
vol
Definition include/atalk/volume.h:33