Release bumped to "gts4".
[tac_plus.git] / do_acct.h
1 #ifndef DO_ACCT_H
2 #define DO_ACCT_H 1
3
4 #include "tac_plus.h"
5
6
7 /* An API accounting record structure */
8 struct acct_rec {
9     int acct_type;              /* start, stop, update */
10
11 #define ACCT_TYPE_START      1
12 #define ACCT_TYPE_STOP       2
13 #define ACCT_TYPE_UPDATE     3
14
15     struct identity *identity;
16     int authen_method;
17     int authen_type;
18     int authen_service;
19     char *msg;       /* output field */
20     char *admin_msg; /* output field */
21     int num_args;
22     char **args;
23 };
24
25 extern char *wtmpfile;          /* for wtmp file logging */
26
27
28 extern int do_acct TAC_ARGS((struct acct_rec *rec));
29 extern char *find_attr_value TAC_ARGS((char *attr, char **args, int cnt));
30 extern int do_wtmp TAC_ARGS((struct acct_rec *rec));
31
32
33 #endif /* DO_ACCT_H */