]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/file.h
Convert afp_moveandrename and all called funcs to XXXat semantics if available
[netatalk.git] / etc / afpd / file.h
index 62acd0b005355a4236a384683343eb3446bde618..6cf4ae22f8184d15319dddb26d6d25b75bf5c832 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.h,v 1.23 2009-10-14 01:38:28 didg Exp $
+ * $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.
@@ -112,17 +112,17 @@ 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, int *);
+                                 struct dir *, char *buf, size_t *);
 
 extern int setfilparams (struct vol *, struct path *, u_int16_t, char *);
-extern int renamefile   (const struct vol *, char *, char *, char *, struct adouble *);
-extern int copyfile     (const struct vol *, const struct vol *, char *, char *, char *, struct adouble *);
-extern int deletefile   (const struct vol *, char *, int);
+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, 
-                         struct dir *dir, char *buf, int *buflen, struct adouble *adp);
+                         struct dir *dir, char *buf, size_t *buflen, struct adouble *adp);
 
-extern void *get_finderinfo (const struct vol *, const char *, struct adouble *, void *);
+extern void *get_finderinfo (const struct vol *, const char *, struct adouble *, void *, int);
 
 extern size_t mtoUTF8   (const struct vol *, const char *, size_t , char *, size_t );
 extern int  copy_path_name (const struct vol *, char *, char *i);
@@ -131,12 +131,12 @@ extern u_int32_t get_id  (struct vol *, struct adouble *, const struct stat *,
                                 const cnid_t , char *, const int );
 
 /* FP functions */
-extern int      afp_exchangefiles (AFPObj *, char *, int, char *, int *);
-extern int     afp_setfilparams (AFPObj *, char *, int, char *, int *);
-extern int     afp_copyfile (AFPObj *, char *, int, char *, int *);
-extern int     afp_createfile (AFPObj *, char *, int, char *, int *);
-extern int      afp_createid (AFPObj *, char *, int, char *, int *);
-extern int      afp_resolveid (AFPObj *, char *, int, char *, int *);
-extern int      afp_deleteid (AFPObj *, char *, int, char *, int *);
+int afp_exchangefiles (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
+int afp_setfilparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
+int afp_copyfile (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
+int afp_createfile (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
+int afp_createid (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
+int afp_resolveid (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
+int afp_deleteid (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
 
 #endif