selinux-h: Make generated .h files standalone.
[gnulib.git] / lib / se-context.in.h
1 #ifndef SELINUX_CONTEXT_H
2 # define SELINUX_CONTEXT_H
3
4 # include <errno.h>
5
6 /* The definition of _GL_UNUSED_PARAMETER is copied here.  */
7
8 typedef int context_t;
9 static inline context_t context_new (char const *s _GL_UNUSED_PARAMETER)
10   { errno = ENOTSUP; return 0; }
11 static inline char *context_str (context_t con _GL_UNUSED_PARAMETER)
12   { errno = ENOTSUP; return (void *) 0; }
13 static inline void context_free (context_t c _GL_UNUSED_PARAMETER) {}
14
15 static inline int context_user_set (context_t sc _GL_UNUSED_PARAMETER,
16                                     char const *s _GL_UNUSED_PARAMETER)
17   { errno = ENOTSUP; return -1; }
18 static inline int context_role_set (context_t sc _GL_UNUSED_PARAMETER,
19                                     char const *s _GL_UNUSED_PARAMETER)
20   { errno = ENOTSUP; return -1; }
21 static inline int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
22                                      char const *s _GL_UNUSED_PARAMETER)
23   { errno = ENOTSUP; return -1; }
24 static inline int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
25                                     char const *s _GL_UNUSED_PARAMETER)
26   { errno = ENOTSUP; return -1; }
27
28 #endif