]> arthur.barton.de Git - netatalk.git/blobdiff - etc/papd/uam_auth.h
Remove bdb env on exit
[netatalk.git] / etc / papd / uam_auth.h
index bf644fc5d63b6bc12433d38408364e95a9895de4..0cc9156a2b78e5356dbf899de246c2f7ddc2d213 100644 (file)
@@ -1,4 +1,7 @@
-/* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
+/*
+ * $Id: uam_auth.h,v 1.4 2009-10-13 22:55:37 didg Exp $
+ *
+ * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
  * All Rights Reserved.  See COPYRIGHT.
  *
  * interface between uam.c and auth.c
@@ -12,6 +15,8 @@
 
 #include <atalk/uam.h>
 
+#include "file.h"
+
 struct uam_mod {
   void *uam_module;
   struct uam_export *uam_fcn;
@@ -24,15 +29,15 @@ struct uam_obj {
   int uam_count;
   union {
     struct {
-      int (*login) __P((void *, struct passwd **, 
-                       char *, int, char *, int *));
-      int (*logincont) __P((void *, struct passwd **, char *,
-                           int, char *, int *));
-      void (*logout) __P((void));
+      int (*login) (void *, struct passwd **, 
+                       char *, int, char *, int *);
+      int (*logincont) (void *, struct passwd **, char *,
+                           int, char *, int *);
+      void (*logout) (void);
     } uam_login;
-    int (*uam_changepw) __P((void *, char *, struct passwd *, char *,
-                            int, char *, int *));
-    int (*uam_printer) __P((char *, char *, char *, struct papfile *));
+    int (*uam_changepw) (void *, char *, struct passwd *, char *,
+                            int, char *, int *);
+    int (*uam_printer) (char *, char *, char *, struct papfile *);
   } u;
   struct uam_obj *uam_prev, *uam_next;
 };
@@ -54,14 +59,15 @@ struct uam_obj {
                 (((type) == UAM_SERVER_PRINTAUTH) ? &uam_printer : NULL)))
 
 
-extern struct uam_mod *uam_load __P((const char *, const char *));
-extern void uam_unload __P((struct uam_mod *));
+extern struct uam_mod *uam_load (const char *, const char *);
+extern void uam_unload (struct uam_mod *);
 
 /* auth.c */
-int auth_load __P((const char *, const char *));
-int auth_register __P((const int, struct uam_obj *));
+int auth_load (const char *, const char *);
+int auth_register (const int, struct uam_obj *);
 #define auth_unregister(a) uam_detach(a)
-struct uam_obj *auth_uamfind __P((const int, const char *, const int));
-void auth_unload __P((void));
+struct uam_obj *auth_uamfind (const int, const char *, const int);
+void auth_unload (void);
+int getuamnames (const int, char *);
 
 #endif /* uam_auth.h */