Return pointer when using bt_get()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 30 Nov 2015 14:03:04 +0000 (09:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 19 Jan 2016 18:28:27 +0000 (13:28 -0500)
commitb82cd9f0ac23ce23386d4cf3d6b46aaf09293770
tree871e9b2992a2b284f6aa28d72067dcb3516fecf1
parent935e7ed6b558638e2ede402febdb7c82930cc1b8
Return pointer when using bt_get()

bt_get() now returns the pointer it was passed to replace code
of the form:

bt_get(my_thingy);
another_object->thingy = my_thingy;

to the shorter form

another_object->thingy = bt_get(my_thingy);

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ref.h
lib/ref.c
This page took 0.025139 seconds and 4 git commands to generate.