death to trailing whitespace
[openafs.git] / src / WINNT / aklog / aklog.h
1 /*
2  *  Copyright (C) 1989,2004 by the Massachusetts Institute of Technology
3  *
4  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
5  * distribute this software and its documentation for any purpose and
6  * without fee is hereby granted, provided that the above copyright
7  * notice appear in all copies and that both that copyright notice and
8  * this permission notice appear in supporting documentation, and that
9  * the name of M.I.T. not be used in advertising or publicity pertaining
10  * to distribution of the software without specific, written prior
11  * permission.  M.I.T. makes no representations about the suitability of
12  * this software for any purpose.  It is provided "as is" without express
13  * or implied warranty.
14  */
15
16 #ifndef __AKLOG_H__
17 #define __AKLOG_H__
18
19 #if !defined(lint) && !defined(SABER)
20 static char *rcsid_aklog_h = "$Id$";
21 #endif /* lint || SABER */
22
23 #ifndef WIN32
24 #include <afs/param.h>
25 #endif
26
27 #if !defined(vax)
28 #ifndef WIN32
29 #include <unistd.h>
30 #endif
31 #include <stdlib.h>
32 #include <limits.h>
33 #endif
34
35 #ifndef WIN32
36 #include <sys/types.h>
37 #endif
38 #include <krb.h>
39 #include "linked_list.h"
40
41 #ifdef __STDC__
42 #define ARGS(x) x
43 #else
44 #define ARGS(x) ()
45 #endif /* __STDC__ */
46
47 #include <afscompat.h>
48
49 typedef struct {
50     int (*readlink)ARGS((char *, char *, int));
51     int (*isdir)ARGS((char *, unsigned char *));
52     char *(*getcwd)ARGS((char *, size_t));
53     int (*get_cred)ARGS((char *, char *, char *, CREDENTIALS *));
54     int (*get_user_realm)ARGS((char *));
55     void (*pstderr)ARGS((char *));
56     void (*pstdout)ARGS((char *));
57     void (*exitprog)ARGS((char));
58 } aklog_params;
59
60 void aklog ARGS((int, char *[], aklog_params *));
61 void aklog_init_params ARGS((aklog_params *));
62
63 #endif /* __AKLOG_H__ */