X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Ffile.h;h=ec811596b9a0d3c813028c822410c5fdfdf4a45c;hb=a7f754026326a7a5187a969f1de9ce615b49fec1;hp=483f6be61a4d264fe74910a6f8c66a22a3b29f35;hpb=1a6013c7ecd313e03eee1192d54bee624d4a9293;p=netatalk.git diff --git a/etc/afpd/file.h b/etc/afpd/file.h index 483f6be6..ec811596 100644 --- a/etc/afpd/file.h +++ b/etc/afpd/file.h @@ -1,6 +1,4 @@ /* - * $Id: file.h,v 1.26 2010/03/12 15:16:49 franklahm Exp $ - * * Copyright (c) 1990,1991 Regents of The University of Michigan. * All Rights Reserved. * @@ -28,11 +26,10 @@ /*#include */ /* including it here causes some confusion */ #include -#include -#include +#include #include +#include -#include "globals.h" #include "volume.h" #include "directory.h" @@ -54,12 +51,6 @@ extern const u_char ufinderi[]; #define FILPBIT_EXTRFLEN 14 #define FILPBIT_UNIXPR 15 -struct extmap { - char *em_ext; - char em_creator[ 4 ]; - char em_type[ 4 ]; -}; - #define kTextEncodingUTF8 0x08000103 typedef enum { @@ -106,20 +97,19 @@ typedef enum { kTextEncodingMacKeyboardGlyphs = 41, } kTextEncoding_t; -extern char *set_name (const struct vol *, char *, cnid_t, char *, cnid_t, u_int32_t ); +extern char *set_name (const struct vol *, char *, cnid_t, char *, cnid_t, uint32_t ); extern struct extmap *getextmap (const char *); extern struct extmap *getdefextmap (void); -extern int getfilparams (struct vol *, u_int16_t, struct path *, - struct dir *, char *buf, size_t *); - -extern int setfilparams (struct vol *, struct path *, u_int16_t, char *); +extern int getfilparams (const AFPObj *obj, struct vol *, uint16_t, struct path *, + struct dir *, char *buf, size_t *, int); +extern int setfilparams (const AFPObj *obj, struct vol *, struct path *, uint16_t, char *); extern int renamefile (const struct vol *, int, char *, char *, char *, struct adouble *); extern int copyfile (const struct vol *, const struct vol *, int, char *, char *, char *, struct adouble *); extern int deletefile (const struct vol *, int, char *, int); -extern int getmetadata (struct vol *vol, u_int16_t bitmap, struct path *path, +extern int getmetadata (const AFPObj *obj, struct vol *vol, uint16_t bitmap, struct path *path, struct dir *dir, char *buf, size_t *buflen, struct adouble *adp); extern void *get_finderinfo (const struct vol *, const char *, struct adouble *, void *, int);