1 #ifndef _BABELTRACE_FORMAT_H
2 #define _BABELTRACE_FORMAT_H
9 * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
22 #include <babeltrace/types.h>
29 uint64_t (*uint_read
)(struct stream_pos
*pos
,
30 const struct type_class_integer
*int_class
);
31 int64_t (*int_read
)(struct stream_pos
*pos
,
32 const struct type_class_integer
*int_class
);
33 void (*uint_write
)(struct stream_pos
*pos
,
34 const struct type_class_integer
*int_class
,
36 void (*int_write
)(struct stream_pos
*pos
,
37 const struct type_class_integer
*int_class
,
40 void (*float_copy
)(struct stream_pos
*destp
,
41 struct stream_pos
*srcp
,
42 const struct type_class_float
*float_class
);
43 double (*double_read
)(struct stream_pos
*pos
,
44 const struct type_class_float
*float_class
);
45 void (*double_write
)(struct stream_pos
*pos
,
46 const struct type_class_float
*float_class
,
49 void (*string_copy
)(struct stream_pos
*dest
, struct stream_pos
*src
,
50 const struct type_class_string
*string_class
);
51 void (*string_read
)(unsigned char **dest
, struct stream_pos
*src
,
52 const struct type_class_string
*string_class
);
53 void (*string_write
)(struct stream_pos
*dest
, const unsigned char *src
,
54 const struct type_class_string
*string_class
);
55 void (*string_free_temp
)(unsigned char *string
);
57 GQuark (*enum_read
)(struct stream_pos
*pos
,
58 const struct type_class_enum
*src
);
59 void (*enum_write
)(struct stream_pos
*pos
,
60 const struct type_class_enum
*dest
,
62 void (*struct_begin
)(struct stream_pos
*pos
,
63 const struct type_class_struct
*struct_class
);
64 void (*struct_end
)(struct stream_pos
*pos
,
65 const struct type_class_struct
*struct_class
);
66 void (*array_begin
)(struct stream_pos
*pos
,
67 const struct type_class_array
*array_class
);
68 void (*array_end
)(struct stream_pos
*pos
,
69 const struct type_class_array
*array_class
);
70 void (*sequence_begin
)(struct stream_pos
*pos
,
71 const struct type_class_sequence
*sequence_class
);
72 void (*sequence_end
)(struct stream_pos
*pos
,
73 const struct type_class_sequence
*sequence_class
);
76 struct format
*bt_lookup_format(GQuark qname
);
77 int bt_register_format(struct format
*format
);
79 /* TBD: format unregistration */
81 #endif /* _BABELTRACE_FORMAT_H */
This page took 0.031234 seconds and 4 git commands to generate.