projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git]
/
include
/
babeltrace
/
ctf-writer
/
event.h
diff --git
a/include/babeltrace/ctf-writer/event.h
b/include/babeltrace/ctf-writer/event.h
index 1a827a3f3a42f51a9b4d59035811f3616859581a..fb5fdb2a009e49e109afabb048a0513b29d7fb5b 100644
(file)
--- a/
include/babeltrace/ctf-writer/event.h
+++ b/
include/babeltrace/ctf-writer/event.h
@@
-30,9
+30,7
@@
* http://www.efficios.com/ctf
*/
* http://www.efficios.com/ctf
*/
-#include <babeltrace/ref.h>
-#include <babeltrace/ctf-ir/event-class.h>
-#include <babeltrace/ctf-ir/event.h>
+#include <babeltrace/object.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-46,55
+44,55
@@
struct bt_ctf_field_type;
enum bt_ctf_event_class_log_level {
/// Unknown, used for errors.
enum bt_ctf_event_class_log_level {
/// Unknown, used for errors.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_UNKNOWN =
BT_EVENT_CLASS_LOG_LEVEL_UNKNOWN
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_UNKNOWN =
-1
,
/// Unspecified log level.
/// Unspecified log level.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_UNSPECIFIED =
BT_EVENT_CLASS_LOG_LEVEL_UNSPECIFIED
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_UNSPECIFIED =
255
,
/// System is unusable.
/// System is unusable.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_EMERGENCY =
BT_EVENT_CLASS_LOG_LEVEL_EMERGENCY
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_EMERGENCY =
0
,
/// Action must be taken immediately.
/// Action must be taken immediately.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_ALERT =
BT_EVENT_CLASS_LOG_LEVEL_ALERT
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_ALERT =
1
,
/// Critical conditions.
/// Critical conditions.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_CRITICAL =
BT_EVENT_CLASS_LOG_LEVEL_CRITICAL
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_CRITICAL =
2
,
/// Error conditions.
/// Error conditions.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_ERROR =
BT_EVENT_CLASS_LOG_LEVEL_ERROR
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_ERROR =
3
,
/// Warning conditions.
/// Warning conditions.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_WARNING =
BT_EVENT_CLASS_LOG_LEVEL_WARNING
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_WARNING =
4
,
/// Normal, but significant, condition.
/// Normal, but significant, condition.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_NOTICE =
BT_EVENT_CLASS_LOG_LEVEL_NOTICE
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_NOTICE =
5
,
/// Informational message.
/// Informational message.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_INFO =
BT_EVENT_CLASS_LOG_LEVEL_INFO
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_INFO =
6
,
/// Debug information with system-level scope (set of programs).
/// Debug information with system-level scope (set of programs).
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_SYSTEM =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_SYSTEM
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_SYSTEM =
7
,
/// Debug information with program-level scope (set of processes).
/// Debug information with program-level scope (set of processes).
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_PROGRAM =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROGRAM
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_PROGRAM =
8
,
/// Debug information with process-level scope (set of modules).
/// Debug information with process-level scope (set of modules).
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_PROCESS =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROCESS
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_PROCESS =
9
,
/// Debug information with module (executable/library) scope (set of units).
/// Debug information with module (executable/library) scope (set of units).
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_MODULE =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_MODULE
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_MODULE =
10
,
/// Debug information with compilation unit scope (set of functions).
/// Debug information with compilation unit scope (set of functions).
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_UNIT =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_UNIT
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_UNIT =
11
,
/// Debug information with function-level scope.
/// Debug information with function-level scope.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION =
12
,
/// Debug information with line-level scope (default log level).
/// Debug information with line-level scope (default log level).
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE =
13
,
/// Debug-level message.
/// Debug-level message.
- BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG =
BT_EVENT_CLASS_LOG_LEVEL_DEBUG
,
+ BT_CTF_EVENT_CLASS_LOG_LEVEL_DEBUG =
14
,
};
extern struct bt_ctf_event *bt_ctf_event_create(
};
extern struct bt_ctf_event *bt_ctf_event_create(
@@
-140,14
+138,14
@@
extern struct bt_ctf_event_class *bt_ctf_event_get_class(
static inline
void bt_ctf_event_get(struct bt_ctf_event *event)
{
static inline
void bt_ctf_event_get(struct bt_ctf_event *event)
{
- bt_
get
(event);
+ bt_
object_get_ref
(event);
}
/* Pre-2.0 CTF writer compatibility */
static inline
void bt_ctf_event_put(struct bt_ctf_event *event)
{
}
/* Pre-2.0 CTF writer compatibility */
static inline
void bt_ctf_event_put(struct bt_ctf_event *event)
{
- bt_
put
(event);
+ bt_
object_put_ref
(event);
}
extern struct bt_ctf_event_class *bt_ctf_event_class_create(const char *name);
}
extern struct bt_ctf_event_class *bt_ctf_event_class_create(const char *name);
@@
-203,14
+201,14
@@
extern struct bt_ctf_field_type *bt_ctf_event_class_get_field_by_name(
static inline
void bt_ctf_event_class_get(struct bt_ctf_event_class *event_class)
{
static inline
void bt_ctf_event_class_get(struct bt_ctf_event_class *event_class)
{
- bt_
get
(event_class);
+ bt_
object_get_ref
(event_class);
}
/* Pre-2.0 CTF writer compatibility */
static inline
void bt_ctf_event_class_put(struct bt_ctf_event_class *event_class)
{
}
/* Pre-2.0 CTF writer compatibility */
static inline
void bt_ctf_event_class_put(struct bt_ctf_event_class *event_class)
{
- bt_
put
(event_class);
+ bt_
object_put_ref
(event_class);
}
#ifdef __cplusplus
}
#ifdef __cplusplus
This page took
0.029515 seconds
and
4
git commands to generate.