cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
endpoint_opts.h
Go to the documentation of this file.
1
6
#ifndef __CWIST_ENDPOINT_OPTS_H__
7
#define __CWIST_ENDPOINT_OPTS_H__
8
9
#include <stdbool.h>
10
#include <stdint.h>
11
18
typedef
uint32_t
cwist_endpoint_opt_t
;
19
21
#define CWIST_DYNAMIC (1u << 0)
29
#define CWIST_ENDPOINT_FIXED (1u << 1)
32
#define CWIST_ENDPOINT_PUBLIC_FIXED (1u << 3)
34
#define CWIST_ENDPOINT_FILE (1u << 2)
35
37
#define CWIST_ENDPOINT_DEFAULT (CWIST_DYNAMIC)
38
39
static
inline
bool
cwist_endpoint_has(
cwist_endpoint_opt_t
opts,
cwist_endpoint_opt_t
flag) {
40
return
(opts & flag) != 0;
41
}
42
48
bool
cwist_endpoint_has_extern
(
cwist_endpoint_opt_t
opts,
cwist_endpoint_opt_t
flag);
49
50
#endif
/* __CWIST_ENDPOINT_OPTS_H__ */
cwist_endpoint_opt_t
uint32_t cwist_endpoint_opt_t
Bitmask type controlling endpoint behavior.
Definition
endpoint_opts.h:18
cwist_endpoint_has_extern
bool cwist_endpoint_has_extern(cwist_endpoint_opt_t opts, cwist_endpoint_opt_t flag)
Out-of-line cwist_endpoint_has(), for callers that cannot use a static inline function,...
Definition
app.c:2352
include
cwist
sys
app
endpoint_opts.h
Generated by
1.9.8