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