Hide new bt_ctf_clock_* symbols
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 23 Oct 2016 19:02:50 +0000 (15:02 -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/clock.c
formats/ctf/ir/event.c
include/babeltrace/ctf-ir/clock-internal.h
include/babeltrace/ctf-ir/clock.h
include/babeltrace/ctf-writer/clock.h

index 9256bc1f26f58ef5cb4f04a8ca9a92d32dc364e7..67a96010951b8d79f25b5ae00954bb7e1d9d8962 100644 (file)
@@ -113,6 +113,7 @@ error:
        return clock;
 }
 
+BT_HIDDEN
 const char *bt_ctf_clock_get_name(struct bt_ctf_clock *clock)
 {
        const char *ret = NULL;
@@ -129,6 +130,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 const char *bt_ctf_clock_get_description(struct bt_ctf_clock *clock)
 {
        const char *ret = NULL;
@@ -159,6 +161,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 uint64_t bt_ctf_clock_get_frequency(struct bt_ctf_clock *clock)
 {
        uint64_t ret = -1ULL;
@@ -186,6 +189,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 uint64_t bt_ctf_clock_get_precision(struct bt_ctf_clock *clock)
 {
        uint64_t ret = -1ULL;
@@ -213,6 +217,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 int bt_ctf_clock_get_offset_s(struct bt_ctf_clock *clock, int64_t *offset_s)
 {
        int ret = 0;
@@ -241,6 +246,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 int bt_ctf_clock_get_offset(struct bt_ctf_clock *clock, int64_t *offset)
 {
        int ret = 0;
@@ -269,6 +275,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 int bt_ctf_clock_get_is_absolute(struct bt_ctf_clock *clock)
 {
        int ret = -1;
@@ -296,6 +303,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 const unsigned char *bt_ctf_clock_get_uuid(struct bt_ctf_clock *clock)
 {
        const unsigned char *ret;
@@ -310,6 +318,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 int bt_ctf_clock_set_uuid(struct bt_ctf_clock *clock, const unsigned char *uuid)
 {
        int ret = 0;
@@ -325,6 +334,7 @@ end:
        return ret;
 }
 
+static
 uint64_t ns_from_value(uint64_t frequency, uint64_t value)
 {
        uint64_t ns;
@@ -338,6 +348,7 @@ uint64_t ns_from_value(uint64_t frequency, uint64_t value)
        return ns;
 }
 
+BT_HIDDEN
 int bt_ctf_clock_get_time(struct bt_ctf_clock *clock, int64_t *time)
 {
        int ret = 0;
@@ -396,6 +407,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 uint64_t bt_ctf_clock_get_value(struct bt_ctf_clock *clock)
 {
        uint64_t ret = -1ULL;
@@ -417,6 +429,7 @@ end:
        return ret;
 }
 
+BT_HIDDEN
 int bt_ctf_clock_set_value(struct bt_ctf_clock *clock, uint64_t value)
 {
        int ret = 0;
@@ -521,6 +534,7 @@ void bt_ctf_clock_destroy(struct bt_object *obj)
        g_free(clock);
 }
 
+BT_HIDDEN
 int64_t bt_ctf_clock_ns_from_value(struct bt_ctf_clock *clock, uint64_t value)
 {
        int64_t ns = -1ULL;
index 3ea59eaac7a9281b250a1b8302a0ad101023d370..b1b98b1f726ac65a498fc8b7a3c79693faec7b6d 100644 (file)
@@ -39,6 +39,7 @@
 #include <babeltrace/ctf-ir/trace-internal.h>
 #include <babeltrace/ctf-ir/validation-internal.h>
 #include <babeltrace/ctf-ir/packet-internal.h>
+#include <babeltrace/ctf-ir/clock-internal.h>
 #include <babeltrace/ctf-ir/utils.h>
 #include <babeltrace/ref.h>
 #include <babeltrace/ctf-ir/attributes-internal.h>
index 8f7b5f07e31f9d9b77dfe8ab800e4143bb2be51a..75677707d8e42a134ee7191273f741e631331328 100644 (file)
@@ -88,4 +88,133 @@ BT_HIDDEN
 void bt_ctf_clock_serialize(struct bt_ctf_clock *clock,
                struct metadata_context *context);
 
+/*
+ * bt_ctf_clock_get_name: get a clock's name.
+ *
+ * Get the clock's name.
+ *
+ * @param clock Clock instance.
+ *
+ * Returns the clock's name, NULL on error.
+ */
+BT_HIDDEN
+const char *bt_ctf_clock_get_name(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_get_description: get a clock's description.
+ *
+ * Get the clock's description.
+ *
+ * @param clock Clock instance.
+ *
+ * Returns the clock's description, NULL if unset.
+ */
+BT_HIDDEN
+const char *bt_ctf_clock_get_description(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_get_frequency: get a clock's frequency.
+ *
+ * Get the clock's frequency (Hz).
+ *
+ * @param clock Clock instance.
+ *
+ * Returns the clock's frequency, -1ULL on error.
+ */
+BT_HIDDEN
+uint64_t bt_ctf_clock_get_frequency(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_get_precision: get a clock's precision.
+ *
+ * Get the clock's precision (in clock ticks).
+ *
+ * @param clock Clock instance.
+ *
+ * Returns the clock's precision, -1ULL on error.
+ */
+BT_HIDDEN
+uint64_t bt_ctf_clock_get_precision(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_get_offset_s: get a clock's offset in seconds.
+ *
+ * Get the clock's offset in seconds from POSIX.1 Epoch, 1970-01-01.
+ *
+ * @param clock Clock instance.
+ * @param offset_s Pointer to clock offset in seconds (output).
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+BT_HIDDEN
+int bt_ctf_clock_get_offset_s(struct bt_ctf_clock *clock,
+               int64_t *offset_s);
+
+/*
+ * bt_ctf_clock_get_offset: get a clock's offset in ticks.
+ *
+ * Get the clock's offset in ticks from Epoch + offset_t.
+ *
+ * @param clock Clock instance.
+ * @param offset Clock offset in ticks from Epoch + offset_s (output).
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+BT_HIDDEN
+int bt_ctf_clock_get_offset(struct bt_ctf_clock *clock,
+               int64_t *offset);
+
+/*
+ * bt_ctf_clock_get_is_absolute: get a clock's absolute attribute.
+ *
+ * Get the clock's absolute attribute. A clock is absolute if the clock is a
+ * global reference across the trace's other clocks.
+ *
+ * @param clock Clock instance.
+ *
+ * Returns the clock's absolute attribute, a negative value on error.
+ */
+BT_HIDDEN
+int bt_ctf_clock_get_is_absolute(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_get_uuid: get a clock's UUID.
+ *
+ * Get the clock's UUID.
+ *
+ * @param clock Clock instance.
+ *
+ * Returns a pointer to the clock's UUID (16 byte array) on success,
+ * NULL on error.
+ */
+BT_HIDDEN
+const unsigned char *bt_ctf_clock_get_uuid(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_set_uuid: set a clock's UUID.
+ *
+ * Set a clock's UUID.
+ *
+ * @param clock Clock instance.
+ * @param uuid A 16-byte array containing a UUID.
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+BT_HIDDEN
+int bt_ctf_clock_set_uuid(struct bt_ctf_clock *clock,
+               const unsigned char *uuid);
+
+BT_HIDDEN
+int64_t bt_ctf_clock_ns_from_value(struct bt_ctf_clock *clock,
+               uint64_t value);
+
+BT_HIDDEN
+uint64_t bt_ctf_clock_get_value(struct bt_ctf_clock *clock);
+
+BT_HIDDEN
+int bt_ctf_clock_set_value(struct bt_ctf_clock *clock, uint64_t value);
+
+BT_HIDDEN
+int bt_ctf_clock_get_time(struct bt_ctf_clock *clock, int64_t *time);
+
 #endif /* BABELTRACE_CTF_IR_CLOCK_INTERNAL_H */
index e35882e05eb7155e879b1b4cabd95023adbaf55a..7665462b846aefb65b173b69bf336e61cfc03e37 100644 (file)
@@ -49,28 +49,6 @@ struct bt_ctf_clock;
  */
 extern struct bt_ctf_clock *bt_ctf_clock_create(const char *name);
 
-/*
- * bt_ctf_clock_get_name: get a clock's name.
- *
- * Get the clock's name.
- *
- * @param clock Clock instance.
- *
- * Returns the clock's name, NULL on error.
- */
-extern const char *bt_ctf_clock_get_name(struct bt_ctf_clock *clock);
-
-/*
- * bt_ctf_clock_get_description: get a clock's description.
- *
- * Get the clock's description.
- *
- * @param clock Clock instance.
- *
- * Returns the clock's description, NULL if unset.
- */
-extern const char *bt_ctf_clock_get_description(struct bt_ctf_clock *clock);
-
 /*
  * bt_ctf_clock_set_description: set a clock's description.
  *
@@ -85,17 +63,6 @@ extern const char *bt_ctf_clock_get_description(struct bt_ctf_clock *clock);
 extern int bt_ctf_clock_set_description(struct bt_ctf_clock *clock,
                const char *desc);
 
-/*
- * bt_ctf_clock_get_frequency: get a clock's frequency.
- *
- * Get the clock's frequency (Hz).
- *
- * @param clock Clock instance.
- *
- * Returns the clock's frequency, -1ULL on error.
- */
-extern uint64_t bt_ctf_clock_get_frequency(struct bt_ctf_clock *clock);
-
 /*
  * bt_ctf_clock_set_frequency: set a clock's frequency.
  *
@@ -109,17 +76,6 @@ extern uint64_t bt_ctf_clock_get_frequency(struct bt_ctf_clock *clock);
 extern int bt_ctf_clock_set_frequency(struct bt_ctf_clock *clock,
                uint64_t freq);
 
-/*
- * bt_ctf_clock_get_precision: get a clock's precision.
- *
- * Get the clock's precision (in clock ticks).
- *
- * @param clock Clock instance.
- *
- * Returns the clock's precision, -1ULL on error.
- */
-extern uint64_t bt_ctf_clock_get_precision(struct bt_ctf_clock *clock);
-
 /*
  * bt_ctf_clock_set_precision: set a clock's precision.
  *
@@ -133,19 +89,6 @@ extern uint64_t bt_ctf_clock_get_precision(struct bt_ctf_clock *clock);
 extern int bt_ctf_clock_set_precision(struct bt_ctf_clock *clock,
                uint64_t precision);
 
-/*
- * bt_ctf_clock_get_offset_s: get a clock's offset in seconds.
- *
- * Get the clock's offset in seconds from POSIX.1 Epoch, 1970-01-01.
- *
- * @param clock Clock instance.
- * @param offset_s Pointer to clock offset in seconds (output).
- *
- * Returns 0 on success, a negative value on error.
- */
-extern int bt_ctf_clock_get_offset_s(struct bt_ctf_clock *clock,
-               int64_t *offset_s);
-
 /*
  * bt_ctf_clock_set_offset_s: set a clock's offset in seconds.
  *
@@ -160,19 +103,6 @@ extern int bt_ctf_clock_get_offset_s(struct bt_ctf_clock *clock,
 extern int bt_ctf_clock_set_offset_s(struct bt_ctf_clock *clock,
                int64_t offset_s);
 
-/*
- * bt_ctf_clock_get_offset: get a clock's offset in ticks.
- *
- * Get the clock's offset in ticks from Epoch + offset_t.
- *
- * @param clock Clock instance.
- * @param offset Clock offset in ticks from Epoch + offset_s (output).
- *
- * Returns 0 on success, a negative value on error.
- */
-extern int bt_ctf_clock_get_offset(struct bt_ctf_clock *clock,
-               int64_t *offset);
-
 /*
  * bt_ctf_clock_set_offset: set a clock's offset in ticks.
  *
@@ -186,18 +116,6 @@ extern int bt_ctf_clock_get_offset(struct bt_ctf_clock *clock,
 extern int bt_ctf_clock_set_offset(struct bt_ctf_clock *clock,
                int64_t offset);
 
-/*
- * bt_ctf_clock_get_is_absolute: get a clock's absolute attribute.
- *
- * Get the clock's absolute attribute. A clock is absolute if the clock is a
- * global reference across the trace's other clocks.
- *
- * @param clock Clock instance.
- *
- * Returns the clock's absolute attribute, a negative value on error.
- */
-extern int bt_ctf_clock_get_is_absolute(struct bt_ctf_clock *clock);
-
 /*
  * bt_ctf_clock_set_is_absolute: set a clock's absolute attribute.
  *
@@ -213,32 +131,14 @@ extern int bt_ctf_clock_set_is_absolute(struct bt_ctf_clock *clock,
                int is_absolute);
 
 /*
- * bt_ctf_clock_get_uuid: get a clock's UUID.
- *
- * Get the clock's UUID.
+ * bt_ctf_clock_set_time: set a clock's current time value.
  *
- * @param clock Clock instance.
- *
- * Returns a pointer to the clock's UUID (16 byte array) on success,
- * NULL on error.
- */
-extern const unsigned char *bt_ctf_clock_get_uuid(struct bt_ctf_clock *clock);
-
-/*
- * bt_ctf_clock_set_uuid: set a clock's UUID.
- *
- * Set a clock's UUID.
- *
- * @param clock Clock instance.
- * @param uuid A 16-byte array containing a UUID.
+ * Set the current time in nanoseconds since the clock's origin (offset and
+ * offset_s attributes). Defaults to 0.
  *
  * Returns 0 on success, a negative value on error.
  */
-extern int bt_ctf_clock_set_uuid(struct bt_ctf_clock *clock,
-               const unsigned char *uuid);
-
-extern int64_t bt_ctf_clock_ns_from_value(struct bt_ctf_clock *clock,
-               uint64_t value);
+extern int bt_ctf_clock_set_time(struct bt_ctf_clock *clock, int64_t time);
 
 #ifdef __cplusplus
 }
index 1bacc34e2aa14a57894b5a49f2fd3e9c566cda54..cb17ca2b0f2e0c529717aa4b4b8f5efa27e56c6d 100644 (file)
 extern "C" {
 #endif
 
-extern int bt_ctf_clock_get_time(struct bt_ctf_clock *clock, int64_t *time);
-
-/*
- * bt_ctf_clock_set_time: set a clock's current time value.
- *
- * Set the current time in nanoseconds since the clock's origin (offset and
- * offset_s attributes). Defaults to 0.
- *
- * Returns 0 on success, a negative value on error.
- */
-extern int bt_ctf_clock_set_time(struct bt_ctf_clock *clock,
-               int64_t time);
-
-extern uint64_t bt_ctf_clock_get_value(struct bt_ctf_clock *clock);
-
-extern int bt_ctf_clock_set_value(struct bt_ctf_clock *clock,
-               uint64_t value);
-
 /*
  * bt_ctf_clock_get and bt_ctf_clock_put: increment and decrement the
  * refcount of the clock
This page took 0.029774 seconds and 4 git commands to generate.