]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/project.h
ea1274aca5948765bf00b7e99b6bb1e3e3534136
[thirdparty/xfsprogs-dev.git] / include / project.h
1 /*
2 * Copyright (c) 2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 #ifndef __PROJECT_H__
19 #define __PROJECT_H__
20
21 #include <xfs/xfs.h>
22
23 #if !defined(__sgi__)
24 typedef __uint32_t prid_t;
25 #endif
26
27 extern int setprojid(const char *__name, int __fd, prid_t __id);
28 extern int getprojid(const char *__name, int __fd, prid_t *__id);
29
30 typedef struct fs_project {
31 prid_t pr_prid; /* project identifier */
32 char *pr_name; /* project name */
33 } fs_project_t;
34
35 extern void setprent(void);
36 extern void endprent(void);
37 extern fs_project_t *getprent(void);
38 extern fs_project_t *getprnam(char *__name);
39 extern fs_project_t *getprprid(prid_t __id);
40
41 typedef struct fs_project_path {
42 prid_t pp_prid; /* project identifier */
43 char *pp_pathname; /* pathname to root of project tree */
44 } fs_project_path_t;
45
46 extern void setprpathent(void);
47 extern void endprpathent(void);
48 extern fs_project_path_t *getprpathent(void);
49
50 extern void setprfiles(void);
51 extern char *projid_file;
52 extern char *projects_file;
53
54 #endif /* __PROJECT_H__ */