~ubuntu-branches/ubuntu/vivid/babeltrace/vivid

« back to all changes in this revision

Viewing changes to include/babeltrace/ctf-text/types.h

  • Committer: Package Import Robot
  • Author(s): Jon Bernard, a457ed8
  • Date: 2013-04-02 15:49:18 UTC
  • mfrom: (1.1.8) (0.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130402154918-njndzk94lffxhlmx
Tags: 1.1.0-1
[a457ed8] New upstream version 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <babeltrace/format.h>
38
38
 
39
39
/*
40
 
 * Inherit from both struct stream_pos and struct trace_descriptor.
 
40
 * Inherit from both struct bt_stream_pos and struct bt_trace_descriptor.
41
41
 */
42
42
struct ctf_text_stream_pos {
43
 
        struct stream_pos parent;
44
 
        struct trace_descriptor trace_descriptor;
 
43
        struct bt_stream_pos parent;
 
44
        struct bt_trace_descriptor trace_descriptor;
45
45
        FILE *fp;               /* File pointer. NULL if unset. */
46
46
        int depth;
47
47
        int dummy;              /* disable output */
53
53
};
54
54
 
55
55
static inline
56
 
struct ctf_text_stream_pos *ctf_text_pos(struct stream_pos *pos)
 
56
struct ctf_text_stream_pos *ctf_text_pos(struct bt_stream_pos *pos)
57
57
{
58
58
        return container_of(pos, struct ctf_text_stream_pos, parent);
59
59
}
61
61
/*
62
62
 * Write only is supported for now.
63
63
 */
64
 
int ctf_text_integer_write(struct stream_pos *pos, struct definition *definition);
65
 
int ctf_text_float_write(struct stream_pos *pos, struct definition *definition);
66
 
int ctf_text_string_write(struct stream_pos *pos, struct definition *definition);
67
 
int ctf_text_enum_write(struct stream_pos *pos, struct definition *definition);
68
 
int ctf_text_struct_write(struct stream_pos *pos, struct definition *definition);
69
 
int ctf_text_variant_write(struct stream_pos *pos, struct definition *definition);
70
 
int ctf_text_array_write(struct stream_pos *pos, struct definition *definition);
71
 
int ctf_text_sequence_write(struct stream_pos *pos, struct definition *definition);
 
64
BT_HIDDEN
 
65
int ctf_text_integer_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
66
BT_HIDDEN
 
67
int ctf_text_float_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
68
BT_HIDDEN
 
69
int ctf_text_string_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
70
BT_HIDDEN
 
71
int ctf_text_enum_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
72
BT_HIDDEN
 
73
int ctf_text_struct_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
74
BT_HIDDEN
 
75
int ctf_text_variant_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
76
BT_HIDDEN
 
77
int ctf_text_array_write(struct bt_stream_pos *pos, struct bt_definition *definition);
 
78
BT_HIDDEN
 
79
int ctf_text_sequence_write(struct bt_stream_pos *pos, struct bt_definition *definition);
72
80
 
73
81
static inline
74
82
void print_pos_tabs(struct ctf_text_stream_pos *pos)
82
90
/*
83
91
 * Check if the field must be printed.
84
92
 */
85
 
int print_field(struct definition *definition);
 
93
BT_HIDDEN
 
94
int print_field(struct bt_definition *definition);
86
95
 
87
96
#endif /* _BABELTRACE_CTF_TEXT_TYPES_H */