]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/project.h
ea1274aca5948765bf00b7e99b6bb1e3e3534136
2 * Copyright (c) 2005 Silicon Graphics, Inc.
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.
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.
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
24 typedef __uint32_t prid_t
;
27 extern int setprojid(const char *__name
, int __fd
, prid_t __id
);
28 extern int getprojid(const char *__name
, int __fd
, prid_t
*__id
);
30 typedef struct fs_project
{
31 prid_t pr_prid
; /* project identifier */
32 char *pr_name
; /* project name */
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
);
41 typedef struct fs_project_path
{
42 prid_t pp_prid
; /* project identifier */
43 char *pp_pathname
; /* pathname to root of project tree */
46 extern void setprpathent(void);
47 extern void endprpathent(void);
48 extern fs_project_path_t
*getprpathent(void);
50 extern void setprfiles(void);
51 extern char *projid_file
;
52 extern char *projects_file
;
54 #endif /* __PROJECT_H__ */