]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/desktop.h
netatalk: fix a crash on Solaris when registering with mDNS
[netatalk.git] / etc / afpd / desktop.h
index ccaa1654ab3b9c63a8f1c57b9c5ed3a679cee469..5f8242439e98fad5534637e6cdf6b4b9b9eb1e9e 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id: desktop.h,v 1.6 2009-10-15 10:43:13 didg Exp $
- *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
  *
@@ -30,6 +28,8 @@
 
 #include "volume.h"
 
+#define APPLEDESKTOP ".AppleDesktop"
+
 struct savedt {
     u_char     sdt_creator[ 4 ];
     int                sdt_fd;
@@ -43,6 +43,9 @@ extern char   *dtfile (const struct vol *, u_char [], char *);
 extern char    *mtoupath (const struct vol *, char *, cnid_t, int utf8);
 extern char    *utompath (const struct vol *, char *, cnid_t, int utf8);
 
+extern int setdeskmode(const struct vol *vol, const mode_t mode);
+extern int setdeskowner(const struct vol *vol, uid_t uid, gid_t gid);
+
 /* FP functions */
 int afp_opendt (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
 int afp_addcomment (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);