]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0 |
e246ba5f | 2 | /* |
f302e9e4 NS |
3 | * Copyright (c) 2005 Silicon Graphics, Inc. |
4 | * All Rights Reserved. | |
e246ba5f | 5 | */ |
59f1f2a6 DW |
6 | #ifndef __LIBFROG_PROJECTS_H__ |
7 | #define __LIBFROG_PROJECTS_H__ | |
e246ba5f | 8 | |
dcabd4e7 | 9 | #include "platform_defs.h" |
6b803e5a | 10 | #include "xfs.h" |
e246ba5f | 11 | |
3d93ccb7 NS |
12 | extern int setprojid(const char *__name, int __fd, prid_t __id); |
13 | extern int getprojid(const char *__name, int __fd, prid_t *__id); | |
e246ba5f | 14 | |
3d93ccb7 NS |
15 | typedef struct fs_project { |
16 | prid_t pr_prid; /* project identifier */ | |
17 | char *pr_name; /* project name */ | |
18 | } fs_project_t; | |
48c46ee3 | 19 | |
3d93ccb7 NS |
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); | |
e246ba5f | 25 | |
3d93ccb7 NS |
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; | |
e246ba5f | 30 | |
3d93ccb7 NS |
31 | extern void setprpathent(void); |
32 | extern void endprpathent(void); | |
33 | extern fs_project_path_t *getprpathent(void); | |
e246ba5f | 34 | |
3d93ccb7 NS |
35 | extern void setprfiles(void); |
36 | extern char *projid_file; | |
37 | extern char *projects_file; | |
38 | ||
59f1f2a6 | 39 | #endif /* __LIBFROG_PROJECTS_H__ */ |