]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libfrog/projects.h
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2005 Silicon Graphics, Inc.
6 #ifndef __LIBFROG_PROJECTS_H__
7 #define __LIBFROG_PROJECTS_H__
9 #include "platform_defs.h"
12 extern int setprojid(const char *__name
, int __fd
, prid_t __id
);
13 extern int getprojid(const char *__name
, int __fd
, prid_t
*__id
);
15 typedef struct fs_project
{
16 prid_t pr_prid
; /* project identifier */
17 char *pr_name
; /* project name */
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
);
26 typedef struct fs_project_path
{
27 prid_t pp_prid
; /* project identifier */
28 char *pp_pathname
; /* pathname to root of project tree */
31 extern void setprpathent(void);
32 extern void endprpathent(void);
33 extern fs_project_path_t
*getprpathent(void);
35 extern void setprfiles(void);
36 extern char *projid_file
;
37 extern char *projects_file
;
39 #endif /* __LIBFROG_PROJECTS_H__ */