]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - libfrog/projects.h
libfrog: move workqueue.h to libfrog/
[thirdparty/xfsprogs-dev.git] / libfrog / projects.h
CommitLineData
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
12extern int setprojid(const char *__name, int __fd, prid_t __id);
13extern int getprojid(const char *__name, int __fd, prid_t *__id);
e246ba5f 14
3d93ccb7
NS
15typedef struct fs_project {
16 prid_t pr_prid; /* project identifier */
17 char *pr_name; /* project name */
18} fs_project_t;
48c46ee3 19
3d93ccb7
NS
20extern void setprent(void);
21extern void endprent(void);
22extern fs_project_t *getprent(void);
23extern fs_project_t *getprnam(char *__name);
24extern fs_project_t *getprprid(prid_t __id);
e246ba5f 25
3d93ccb7
NS
26typedef 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
31extern void setprpathent(void);
32extern void endprpathent(void);
33extern fs_project_path_t *getprpathent(void);
e246ba5f 34
3d93ccb7
NS
35extern void setprfiles(void);
36extern char *projid_file;
37extern char *projects_file;
38
59f1f2a6 39#endif /* __LIBFROG_PROJECTS_H__ */