3 * Linux ISDN subsystem, budget-accounting for network interfaces.
5 * Copyright 1997 by Christian Lademann <cal@zls.de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 04.11.97:cal:budget.period: int --> time_t
28 #ifndef __isdn_budget_h__
29 #define __isdn_budget_h__
31 #include <linux/types.h>
33 #define ISDN_BUDGET_DIAL 0
34 #define ISDN_BUDGET_CHARGE 1
35 #define ISDN_BUDGET_ONLINE 2
36 #define ISDN_BUDGET_NUM_BUDGET 3
38 #define ISDN_BUDGET_INIT 0
39 #define ISDN_BUDGET_CHECK_DIAL 1
40 #define ISDN_BUDGET_CHECK_CHARGE 2
41 #define ISDN_BUDGET_CHECK_ONLINE 3
42 #define ISDN_BUDGET_START_ONLINE 10
44 #define ISDN_BUDGET_SET_BUDGET 0
45 #define ISDN_BUDGET_GET_BUDGET 1
48 char name
[9]; /* Interface */
49 int command
, /* subcommand */
50 budget
, /* budget-nr. */
51 amount
, /* set/get budget-amount */
52 used
; /* set/get used amount */
53 time_t period
, /* set/get length of period */
54 period_started
; /* set/get startpoint of period */
58 extern int isdn_net_budget(int, struct device
*);
59 extern int isdn_budget_ioctl(isdn_ioctl_budget
*);
60 #endif /* __KERNEL__ */
62 #endif /* __isdn_budget_h__ */