Hide internal functions of libbabeltrace-ctf
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 24 Jan 2013 22:20:11 +0000 (17:20 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 Jan 2013 22:20:11 +0000 (17:20 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c
formats/ctf/metadata/ctf-ast.h
formats/ctf/types/float.c
include/babeltrace/ctf/callbacks-internal.h
include/babeltrace/ctf/types.h

index a8f8408910c0b32ab0931b3f9581f89d751227dd..a55f5e4e07a7068e1056fbcafbafbdabbe0e842f 100644 (file)
@@ -307,6 +307,7 @@ void ctf_update_timestamp(struct ctf_stream_definition *stream,
  * Print timestamp, rescaling clock frequency to nanoseconds and
  * applying offsets as needed (unix time).
  */
+static
 void ctf_print_timestamp_real(FILE *fp,
                        struct ctf_stream_definition *stream,
                        uint64_t timestamp)
@@ -371,6 +372,7 @@ end:
 /*
  * Print timestamp, in cycles
  */
+static
 void ctf_print_timestamp_cycles(FILE *fp,
                struct ctf_stream_definition *stream,
                uint64_t timestamp)
@@ -1724,7 +1726,7 @@ error:
        return NULL;
 }
 
-
+static
 void ctf_init_mmap_pos(struct ctf_stream_pos *pos,
                struct mmap_stream *mmap_info)
 {
@@ -1815,6 +1817,7 @@ error_def:
        return ret;
 }
 
+static
 int ctf_open_mmap_trace_read(struct ctf_trace *td,
                struct mmap_stream_list *mmap_list,
                void (*packet_seek)(struct stream_pos *pos, size_t index,
index d5a0544a9d6d05f98f35dbe3bd7f68c194d9c09d..136862710d42df1c8c0d6cdcf45921d23bafd578 100644 (file)
@@ -302,11 +302,16 @@ const char *node_type(struct ctf_node *node);
 
 struct ctf_trace;
 
+BT_HIDDEN
 int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node);
+BT_HIDDEN
 int ctf_visitor_semantic_check(FILE *fd, int depth, struct ctf_node *node);
+BT_HIDDEN
 int ctf_visitor_parent_links(FILE *fd, int depth, struct ctf_node *node);
+BT_HIDDEN
 int ctf_visitor_construct_metadata(FILE *fd, int depth, struct ctf_node *node,
                        struct ctf_trace *trace, int byte_order);
+BT_HIDDEN
 int ctf_destroy_metadata(struct ctf_trace *trace);
 
 #endif /* _CTF_AST_H */
index 0cf9caeb6c7795212c53dc7d540c1a9fdd53b36e..054e262452dc5edae4661950b43429b75e73924d 100644 (file)
@@ -96,7 +96,7 @@ static void float_unlock(void)
        assert(!ret);
 }
 
-int _ctf_float_copy(struct stream_pos *destp,
+static int _ctf_float_copy(struct stream_pos *destp,
                    struct definition_float *dest_definition,
                    struct stream_pos *srcp,
                    const struct definition_float *src_definition)
@@ -278,6 +278,7 @@ end:
        return ret;
 }
 
+static
 void __attribute__((constructor)) ctf_float_init(void)
 {
        static_float_declaration =
@@ -292,6 +293,7 @@ void __attribute__((constructor)) ctf_float_init(void)
                                __alignof__(double));
 }
 
+static
 void __attribute__((destructor)) ctf_float_fini(void)
 {
        declaration_unref(&static_float_declaration->p);
index 0390b9a4ef3d22309c873a172fbbc48bf14125f5..41bc8461ef7bb79aaf4d95dee758d287880802cd 100644 (file)
@@ -60,6 +60,7 @@ struct bt_dependencies {
        int refcount;                   /* free when decremented to 0 */
 };
 
+BT_HIDDEN
 void process_callbacks(struct bt_ctf_iter *iter, struct ctf_stream_definition *stream);
 
 #endif /* _BABELTRACE_CALLBACKS_INTERNAL_H */
index 6b8752e2d60ce8136b05ac07ddfb6428f056c870..8bd01027c4cc505ecab3c13ad2748b289dc8b663 100644 (file)
@@ -90,19 +90,33 @@ struct ctf_stream_pos *ctf_pos(struct stream_pos *pos)
        return container_of(pos, struct ctf_stream_pos, parent);
 }
 
+BT_HIDDEN
 int ctf_integer_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_integer_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_float_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_float_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_string_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_string_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_enum_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_enum_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_struct_rw(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_variant_rw(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_array_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_array_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_sequence_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
 int ctf_sequence_write(struct stream_pos *pos, struct definition *definition);
 
 void ctf_packet_seek(struct stream_pos *pos, size_t index, int whence);
This page took 0.02795 seconds and 4 git commands to generate.