From: julien.desfossez@polymtl.ca (Julien Desfossez)
Subject: [lttng-dev] [BABELTRACE PATCH 03/18] Hide internal functions of libbabeltrace-ctf
Date: Thu, 24 Jan 2013 16:26:37 -0500 [thread overview]
Message-ID: <5101A70D.10607@polymtl.ca> (raw)
In-Reply-To: <1359062510-7557-3-git-send-email-jdesfossez@efficios.com>
On 24/01/13 04:21 PM, Julien Desfossez wrote:
> Signed-off-by: Julien Desfossez <jdesfossez at efficios.com>
> ---
> formats/ctf/ctf.c | 5 ++++-
> formats/ctf/metadata/ctf-ast.h | 5 +++++
> formats/ctf/types/float.c | 4 +++-
> include/babeltrace/ctf/callbacks-internal.h | 1 +
> include/babeltrace/ctf/callbacks.h | 1 +
> include/babeltrace/ctf/types.h | 14 ++++++++++++++
> 6 files changed, 28 insertions(+), 2 deletions(-)
>
> diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c
> index a8f8408..a55f5e4 100644
> --- a/formats/ctf/ctf.c
> +++ b/formats/ctf/ctf.c
> @@ -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,
> diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h
> index d5a0544..1368627 100644
> --- a/formats/ctf/metadata/ctf-ast.h
> +++ b/formats/ctf/metadata/ctf-ast.h
> @@ -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 */
> diff --git a/formats/ctf/types/float.c b/formats/ctf/types/float.c
> index 0cf9cae..054e262 100644
> --- a/formats/ctf/types/float.c
> +++ b/formats/ctf/types/float.c
> @@ -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);
> diff --git a/include/babeltrace/ctf/callbacks-internal.h b/include/babeltrace/ctf/callbacks-internal.h
> index 0390b9a..41bc846 100644
> --- a/include/babeltrace/ctf/callbacks-internal.h
> +++ b/include/babeltrace/ctf/callbacks-internal.h
> @@ -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 */
> diff --git a/include/babeltrace/ctf/callbacks.h b/include/babeltrace/ctf/callbacks.h
> index c178767..8d25741 100644
> --- a/include/babeltrace/ctf/callbacks.h
> +++ b/include/babeltrace/ctf/callbacks.h
> @@ -51,6 +51,7 @@ enum bt_cb_ret {
> /*
> * Receives a variable number of strings as parameter, ended with NULL.
> */
> +BT_HIDDEN
> struct bt_dependencies *babeltrace_dependencies_create(const char *first, ...);
this last modif will be removed, this is part of the exposed API, sorry.
Julien
>
> /*
> diff --git a/include/babeltrace/ctf/types.h b/include/babeltrace/ctf/types.h
> index 6b8752e..8bd0102 100644
> --- a/include/babeltrace/ctf/types.h
> +++ b/include/babeltrace/ctf/types.h
> @@ -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);
next prev parent reply other threads:[~2013-01-24 21:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 21:21 [lttng-dev] [BABELTRACE PATCH 01/18] BT_HIDDEN macro Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 02/18] Hide internal functions of ctf-text Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 03/18] Hide internal functions of libbabeltrace-ctf Julien Desfossez
2013-01-24 21:26 ` Julien Desfossez [this message]
2013-01-24 22:08 ` Julien Desfossez
2013-01-24 22:27 ` Mathieu Desnoyers
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 04/18] namespace the scope_path functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 05/18] namespace the array functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 06/18] namespace declaration_ref and declaration_unref Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 07/18] namespace definition_ref and definition_unref Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 08/18] namespace the enum functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 09/18] namespace the int functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 10/18] namespace the sequence functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 11/18] namespace the string functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 12/18] namespace the struct functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 13/18] namespace the heap functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 14/18] namespace the collection functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 15/18] namespace the declaration functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 16/18] namespace the variant functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 17/18] namespace the definition functions Julien Desfossez
2013-01-24 21:21 ` [lttng-dev] [BABELTRACE PATCH 18/18] namespace the lookup_integer function Julien Desfossez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5101A70D.10607@polymtl.ca \
--to=julien.desfossez@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox