namespace the string functions
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 24 Jan 2013 22:23:39 +0000 (17:23 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 Jan 2013 22:23:39 +0000 (17:23 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/events.c
formats/ctf/metadata/ctf-visitor-generate-io-struct.c
include/babeltrace/types.h
types/string.c

index 036ce46bd9ad7aae3103dc7dd6bacf89855babdd..3660c04812aada2749e3b0d1ce3c6e3357e46746 100644 (file)
@@ -601,7 +601,7 @@ char *bt_ctf_get_string(const struct definition *field)
        char *ret = NULL;
 
        if (field && bt_ctf_field_type(bt_ctf_get_decl_from_def(field)) == CTF_TYPE_STRING)
-               ret = get_string(field);
+               ret = bt_get_string(field);
        else
                bt_ctf_field_set_error(-EINVAL);
 
index 94dd0c83dfb45a7980475772c16d0f77de2b30cc..bdb9f5f39e50173d4f77aa72f865470f1aa1c349 100644 (file)
@@ -1558,7 +1558,7 @@ struct declaration *ctf_declaration_string_visit(FILE *fd, int depth,
        }
        if (encoding_c && !strcmp(encoding_c, "ASCII"))
                encoding = CTF_STRING_ASCII;
-       string_declaration = string_declaration_new(encoding);
+       string_declaration = bt_string_declaration_new(encoding);
        return &string_declaration->p;
 }
 
index a0c5467ac992f906576222556109cb3e158bb469..da69b91ee831ac8b4cc352c6a06526af84e1943e 100644 (file)
@@ -426,9 +426,9 @@ struct declaration_enum *
        bt_enum_declaration_new(struct declaration_integer *integer_declaration);
 
 struct declaration_string *
-       string_declaration_new(enum ctf_string_encoding encoding);
-char *get_string(const struct definition *field);
-enum ctf_string_encoding get_string_encoding(const struct definition *field);
+       bt_string_declaration_new(enum ctf_string_encoding encoding);
+char *bt_get_string(const struct definition *field);
+enum ctf_string_encoding bt_get_string_encoding(const struct definition *field);
 
 struct declaration_struct *
        struct_declaration_new(struct declaration_scope *parent_scope,
index cebce12d9df897e9d7303058987c85af29ea58f0..255388f0dcb7ab5ea433384c89433d68edc4cf0f 100644 (file)
@@ -48,7 +48,7 @@ void _string_declaration_free(struct declaration *declaration)
 }
 
 struct declaration_string *
-       string_declaration_new(enum ctf_string_encoding encoding)
+       bt_string_declaration_new(enum ctf_string_encoding encoding)
 {
        struct declaration_string *string_declaration;
 
@@ -109,7 +109,7 @@ void _string_definition_free(struct definition *definition)
        g_free(string);
 }
 
-enum ctf_string_encoding get_string_encoding(const struct definition *field)
+enum ctf_string_encoding bt_get_string_encoding(const struct definition *field)
 {
        struct definition_string *string_definition;
        const struct declaration_string *string_declaration;
@@ -120,7 +120,7 @@ enum ctf_string_encoding get_string_encoding(const struct definition *field)
        return string_declaration->encoding;
 }
 
-char *get_string(const struct definition *field)
+char *bt_get_string(const struct definition *field)
 {
        struct definition_string *string_definition =
                container_of(field, struct definition_string, p);
This page took 0.037903 seconds and 4 git commands to generate.