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 /* Quota Mount Options */
30 #define QMO_NONE (0)
31 #define QMO_USRQUOTA (1)
32 #define QMO_GRPQUOTA (2)
34 typedef struct _quota_mnt_t quota_mnt_t;
35 struct _quota_mnt_t {
36 char *dir;
37 char *device;
38 char *type;
39 int opts;
40 quota_mnt_t *next;
41 };
43 quota_mnt_t *quota_mnt_getlist(quota_mnt_t **list);
44 void quota_mnt_freelist(quota_mnt_t *list);
46 #endif /* !COLLECTD_QUOTA_MNT_H */