-#ifndef BABELTRACE_CTF_WRITER_FIELD_TYPES_H
-#define BABELTRACE_CTF_WRITER_FIELD_TYPES_H
+#ifndef BABELTRACE2_CTF_WRITER_FIELD_TYPES_H
+#define BABELTRACE2_CTF_WRITER_FIELD_TYPES_H
/*
- * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
- *
- * The Common Trace Format (CTF) Specification is available at
- * http://www.efficios.com/ctf
*/
#include <stdint.h>
#include <stddef.h>
-
-#include <babeltrace2/types.h>
+#include <babeltrace2/ctf-writer/types.h>
#ifdef __cplusplus
extern "C" {
extern int bt_ctf_field_type_integer_set_size(
struct bt_ctf_field_type *int_field_type, unsigned int size);
-extern bt_bool bt_ctf_field_type_integer_is_signed(
+extern bt_ctf_bool bt_ctf_field_type_integer_is_signed(
struct bt_ctf_field_type *int_field_type);
/* Pre-2.0 CTF writer compatibility */
}
extern int bt_ctf_field_type_integer_set_is_signed(
- struct bt_ctf_field_type *int_field_type, bt_bool is_signed);
+ struct bt_ctf_field_type *int_field_type, bt_ctf_bool is_signed);
/* Pre-2.0 CTF writer compatibility */
static inline
struct bt_ctf_field_type *int_field_type, int is_signed)
{
return bt_ctf_field_type_integer_set_is_signed(int_field_type,
- is_signed ? BT_TRUE : BT_FALSE);
+ is_signed ? BT_CTF_TRUE : BT_CTF_FALSE);
}
extern enum bt_ctf_integer_base bt_ctf_field_type_integer_get_base(
}
#endif
-#endif /* BABELTRACE_CTF_WRITER_FIELD_TYPES_H */
+#endif /* BABELTRACE2_CTF_WRITER_FIELD_TYPES_H */