Commit | Line | Data |
---|---|---|
16ca5ff0 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
16ca5ff0 | 3 | * |
0235b0db | 4 | * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation |
16ca5ff0 PP |
5 | */ |
6 | ||
0235b0db MJ |
7 | #ifndef BABELTRACE2_CTF_WRITER_UTILS_H |
8 | #define BABELTRACE2_CTF_WRITER_UTILS_H | |
9 | ||
00409097 | 10 | /* For bt_ctf_bool */ |
217cf9d3 | 11 | #include <babeltrace2-ctf-writer/types.h> |
16ca5ff0 PP |
12 | |
13 | #ifdef __cplusplus | |
14 | extern "C" { | |
15 | #endif | |
16 | ||
00409097 | 17 | extern bt_ctf_bool bt_ctf_identifier_is_valid(const char *identifier); |
16ca5ff0 PP |
18 | |
19 | static inline | |
20 | int bt_ctf_validate_identifier(const char *identifier) | |
21 | { | |
22 | return bt_ctf_identifier_is_valid(identifier) ? 1 : 0; | |
23 | } | |
24 | ||
25f74116 PP |
25 | #ifdef __cplusplus |
26 | } | |
27 | #endif | |
28 | ||
924dc299 | 29 | #endif /* BABELTRACE2_CTF_WRITER_UTILS_H */ |