]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libfrog/projects.h
libfrog: fix bitmap error communication problems
[thirdparty/xfsprogs-dev.git] / libfrog / projects.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6 #ifndef __LIBFROG_PROJECTS_H__
7 #define __LIBFROG_PROJECTS_H__
8
9 #include "platform_defs.h"
10 #include "xfs.h"
11
12 extern int setprojid(const char *__name, int __fd, prid_t __id);
13 extern int getprojid(const char *__name, int __fd, prid_t *__id);
14
15 typedef struct fs_project {
16 prid_t pr_prid; /* project identifier */
17 char *pr_name; /* project name */
18 } fs_project_t;
19
20 extern void setprent(void);
21 extern void endprent(void);
22 extern fs_project_t *getprent(void);
23 extern fs_project_t *getprnam(char *__name);
24 extern fs_project_t *getprprid(prid_t __id);
25
26 typedef struct fs_project_path {
27 prid_t pp_prid; /* project identifier */
28 char *pp_pathname; /* pathname to root of project tree */
29 } fs_project_path_t;
30
31 extern void setprpathent(void);
32 extern void endprpathent(void);
33 extern fs_project_path_t *getprpathent(void);
34
35 extern void setprfiles(void);
36 extern char *projid_file;
37 extern char *projects_file;
38
39 #endif /* __LIBFROG_PROJECTS_H__ */