1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <stdbool.h>
5 #include <sys/types.h>
6
7 #if HAVE_ACL
8
9 int devnode_acl(const char *path,
10 bool flush,
11 bool del, uid_t old_uid,
12 bool add, uid_t new_uid);
13
14 int devnode_acl_all(const char *seat,
15 bool flush,
16 bool del, uid_t old_uid,
17 bool add, uid_t new_uid);
18 #else
19
devnode_acl(const char * path,bool flush,bool del,uid_t old_uid,bool add,uid_t new_uid)20 static inline int devnode_acl(const char *path,
21 bool flush,
22 bool del, uid_t old_uid,
23 bool add, uid_t new_uid) {
24 return 0;
25 }
26
devnode_acl_all(const char * seat,bool flush,bool del,uid_t old_uid,bool add,uid_t new_uid)27 static inline int devnode_acl_all(const char *seat,
28 bool flush,
29 bool del, uid_t old_uid,
30 bool add, uid_t new_uid) {
31 return 0;
32 }
33
34 #endif
35