Move to kernel style SPDX license identifiers
[babeltrace.git] / src / ctf-writer / object.c
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
10 void *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
18 end:
19 return obj;
20 }
21
22 void 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.029111 seconds and 4 git commands to generate.