Code

9d98886c648730fbe30e7053051203388f6a395e
[collectd.git] / src / quota_mnt.h
1 /**
2  * collectd - src/quota_mnt.h
3  * Copyright (C) 2005  Niki W. Waibel
4  *
5  * This program is free software; you can redistribute it and/
6  * or modify it under the terms of the GNU General Public Li-
7  * cence as published by the Free Software Foundation; either
8  * version 2 of the Licence, or any later version.
9  *
10  * This program is distributed in the hope that it will be use-
11  * ful, but WITHOUT ANY WARRANTY; without even the implied war-
12  * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public Licence for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * Licence along with this program; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
18  * USA.
19  *
20  * Author:
21  *   Niki W. Waibel <niki.waibel@gmx.net>
22 **/
24 #if !COLLECTD_QUOTA_MNT_H
25 #define COLLECTD_QUOTA_MNT_H 1
27 #include "common.h"
29 #define QMO_NONE     (0)
30 #define QMO_USRQUOTA (1)
31 #define QMO_GRPQUOTA (2)
33 typedef struct _quota_mnt_t quota_mnt_t;
34 struct _quota_mnt_t {
35         char *dir;
36         char *device;
37         int opts;
38         quota_mnt_t *next;
39 };
41 quota_mnt_t *quota_mnt_getlist(quota_mnt_t **list);
42 void quota_mnt_freelist(quota_mnt_t *list);
44 #endif /* !COLLECTD_QUOTA_MNT_H */