objects: add bt_object_freeze() and more statuses
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 19 Mar 2015 02:12:19 +0000 (22:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Mar 2015 18:18:10 +0000 (14:18 -0400)
commita40a567ea928bdb759f299e95c21585837d416a0
tree802cb1f6f3a826c20a49e1ab8f814a49ad40dbb2
parenteadb143fa5f485532becec176989cc5ed4b4e022
objects: add bt_object_freeze() and more statuses

This patch adds the possibility to freeze an object.
By doing this, it introduces a new status code,
BT_OBJECT_STATUS_FROZEN, which is returned when trying
to alter a frozen object. Thus, all functions returning
either 0 or -1 are modified to return an
enum bt_object_status value instead.

The status code BT_OBJECT_STATUS_INVAL is also introduced
to signal invalid arguments, to differentiate this error
from other errors.

Finally, this patch adapts the objects tests and the
documentation to the changes.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/objects.h
lib/objects.c
tests/lib/test_bt_objects.c
This page took 0.024968 seconds and 4 git commands to generate.