lib: make values API const-correct
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 3 Dec 2018 23:39:58 +0000 (18:39 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:36 +0000 (18:19 -0400)
commitce141536303570f5101012630f4068e981d4af31
tree60c22e4efff64aba6a1993846c64d81260538542
parent4b70020dc7da3a97f87be1f6a0055ae2d139542f
lib: make values API const-correct

This patch sets out the ground for subsequent const-correctness patches.
The rules are:

* Convert private API to non-const API, without any `private` prefix,
  including in the file name. A non-const API function accept a
  non-const object.

  Put common enumerations in this header.

* Convert public API to const API:

  * Use `-const.h` suffix in file name.

  * Use `_const` suffix to borrowing functions and callback type
    definitions.

In this particular patch, the `bt_value_null` singleton object is
non-const because you can use it with bt_value_array_append_element()
and bt_value_map_insert_entry().

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
51 files changed:
cli/babeltrace-cfg-cli-args-connect.c
cli/babeltrace-cfg-cli-args-connect.h
cli/babeltrace-cfg-cli-args-default.c
cli/babeltrace-cfg-cli-args.c
cli/babeltrace-cfg-cli-args.h
cli/babeltrace-cfg.c
cli/babeltrace-cfg.h
cli/babeltrace.c
include/Makefile.am
include/babeltrace/babeltrace.h
include/babeltrace/graph/private-component-class-filter.h
include/babeltrace/graph/private-component-class-sink.h
include/babeltrace/graph/private-component-class-source.h
include/babeltrace/graph/private-graph.h
include/babeltrace/graph/private-query-executor.h
include/babeltrace/private-values.h [deleted file]
include/babeltrace/trace-ir/attributes-internal.h
include/babeltrace/trace-ir/private-trace.h
include/babeltrace/trace-ir/trace-internal.h
include/babeltrace/trace-ir/trace.h
include/babeltrace/values-const.h [new file with mode: 0644]
include/babeltrace/values-internal.h
include/babeltrace/values.h
lib/graph/component-class-sink-colander.c
lib/graph/graph.c
lib/graph/query-executor.c
lib/lib-logging.c
lib/trace-ir/attributes.c
lib/trace-ir/trace.c
lib/values.c
plugins/ctf/fs-src/fs.c
plugins/ctf/fs-src/fs.h
plugins/ctf/fs-src/query.c
plugins/ctf/fs-src/query.h
plugins/text/dmesg/dmesg.c
plugins/text/dmesg/dmesg.h
plugins/text/pretty/pretty.c
plugins/text/pretty/pretty.h
plugins/text/pretty/print.c
plugins/utils/counter/counter.c
plugins/utils/counter/counter.h
plugins/utils/dummy/dummy.c
plugins/utils/dummy/dummy.h
plugins/utils/muxer/muxer.c
plugins/utils/muxer/muxer.h
tests/lib/test-plugin-plugins/minimal.c
tests/lib/test-plugin-plugins/sfs.c
tests/lib/test_bt_notification_iterator.c
tests/lib/test_bt_values.c
tests/lib/test_graph_topo.c
tests/lib/test_plugin.c
This page took 0.030931 seconds and 4 git commands to generate.