Fix: bt2: autodisc: remove thread error while inserting status in map
[babeltrace.git] / src / ctf-writer / object.c
... / ...
CommitLineData
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (c) 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 */
6
7#include "object.h"
8#include <babeltrace2-ctf-writer/object.h>
9
10void *bt_ctf_object_get_ref(void *obj)
11{
12 if (G_UNLIKELY(!obj)) {
13 goto end;
14 }
15
16 bt_ctf_object_get_no_null_check(obj);
17
18end:
19 return obj;
20}
21
22void bt_ctf_object_put_ref(void *obj)
23{
24 if (G_UNLIKELY(!obj)) {
25 return;
26 }
27
28 bt_ctf_object_put_no_null_check(obj);
29}
This page took 0.024401 seconds and 4 git commands to generate.