Hide new bt_ctf_packet_* symbols
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 23 Oct 2016 23:35:36 +0000 (19:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 24 Oct 2016 17:25:31 +0000 (13:25 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/packet.c
include/Makefile.am
include/babeltrace/ctf-ir/event.h
include/babeltrace/ctf-ir/packet.h

index 59e193fc9a12a7b76dd25e67ae4434efa9b37c71..a94d2677639461e8d5dcdb3fef6bf3785b1dc51e 100644 (file)
 #include <babeltrace/object-internal.h>
 #include <babeltrace/ref.h>
 
+BT_HIDDEN
 struct bt_ctf_stream *bt_ctf_packet_get_stream(struct bt_ctf_packet *packet)
 {
        return packet ? bt_get(packet->stream) : NULL;
 }
 
+BT_HIDDEN
 struct bt_ctf_field *bt_ctf_packet_get_header(
                struct bt_ctf_packet *packet)
 {
        return packet ? bt_get(packet->header) : NULL;
 }
 
+BT_HIDDEN
 int bt_ctf_packet_set_header(struct bt_ctf_packet *packet,
                struct bt_ctf_field *header)
 {
@@ -87,12 +90,14 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 struct bt_ctf_field *bt_ctf_packet_get_context(
                struct bt_ctf_packet *packet)
 {
        return packet ? bt_get(packet->context) : NULL;
 }
 
+BT_HIDDEN
 int bt_ctf_packet_set_context(struct bt_ctf_packet *packet,
                struct bt_ctf_field *context)
 {
@@ -154,6 +159,7 @@ void bt_ctf_packet_destroy(struct bt_object *obj)
        g_free(packet);
 }
 
+BT_HIDDEN
 struct bt_ctf_packet *bt_ctf_packet_create(
                struct bt_ctf_stream *stream)
 {
index 027f2d32e6bc6d9f69baf9993837094085aa64f3..441d3ba51030b5706d04520550210d764820634b 100644 (file)
@@ -28,7 +28,6 @@ babeltracectfirinclude_HEADERS = \
        babeltrace/ctf-ir/event.h \
        babeltrace/ctf-ir/event-class.h \
        babeltrace/ctf-ir/stream.h \
-       babeltrace/ctf-ir/packet.h \
        babeltrace/ctf-ir/stream-class.h \
        babeltrace/ctf-ir/trace.h \
        babeltrace/ctf-ir/utils.h
@@ -75,6 +74,7 @@ noinst_HEADERS = \
        babeltrace/ctf-ir/trace-internal.h \
        babeltrace/ctf-ir/validation-internal.h \
        babeltrace/ctf-ir/field-path.h \
+       babeltrace/ctf-ir/packet.h \
        babeltrace/ctf-writer/functor-internal.h \
        babeltrace/trace-handle-internal.h \
        babeltrace/compat/uuid.h \
index 21db6bc7a4e9a9a03c939469cfdd61e579b7bba3..421fd11e744eaf368e0702dabc9e2db0942effed 100644 (file)
@@ -42,7 +42,6 @@ struct bt_ctf_event;
 struct bt_ctf_field;
 struct bt_ctf_field_type;
 struct bt_ctf_stream_class;
-struct bt_ctf_packet;
 
 /*
  * bt_ctf_event_create: instanciate an event.
index 40aaab1583544b2b2bc95fb91d392910ec5f882a..5519c3d2d90c68251bb34c101ff9219bd3263313 100644 (file)
@@ -37,22 +37,28 @@ extern "C" {
 struct bt_ctf_stream;
 struct bt_ctf_packet;
 
-extern struct bt_ctf_packet *bt_ctf_packet_create(
+BT_HIDDEN
+struct bt_ctf_packet *bt_ctf_packet_create(
                struct bt_ctf_stream *stream);
 
-extern struct bt_ctf_stream *bt_ctf_packet_get_stream(
+BT_HIDDEN
+struct bt_ctf_stream *bt_ctf_packet_get_stream(
                struct bt_ctf_packet *packet);
 
-extern struct bt_ctf_field *bt_ctf_packet_get_header(
+BT_HIDDEN
+struct bt_ctf_field *bt_ctf_packet_get_header(
                struct bt_ctf_packet *packet);
 
-extern int bt_ctf_packet_set_header(
+BT_HIDDEN
+int bt_ctf_packet_set_header(
                struct bt_ctf_packet *packet, struct bt_ctf_field *header);
 
-extern struct bt_ctf_field *bt_ctf_packet_get_context(
+BT_HIDDEN
+struct bt_ctf_field *bt_ctf_packet_get_context(
                struct bt_ctf_packet *context);
 
-extern int bt_ctf_packet_set_context(
+BT_HIDDEN
+int bt_ctf_packet_set_context(
                struct bt_ctf_packet *packet, struct bt_ctf_field *context);
 
 #ifdef __cplusplus
This page took 0.028825 seconds and 4 git commands to generate.