projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use inheritance for trace descriptor and positions
[babeltrace.git]
/
include
/
babeltrace
/
format.h
diff --git
a/include/babeltrace/format.h
b/include/babeltrace/format.h
index ad2f0cd10f41435b09a3647aa47338a2d464d046..cbba50b0ee26e6e3604ad35035720e0f66ff5401 100644
(file)
--- a/
include/babeltrace/format.h
+++ b/
include/babeltrace/format.h
@@
-21,8
+21,13
@@
#include <babeltrace/types.h>
#include <stdint.h>
#include <babeltrace/types.h>
#include <stdint.h>
+#include <stdio.h>
#include <glib.h>
#include <glib.h>
+/* Parent trace descriptor */
+struct trace_descriptor {
+};
+
struct format {
GQuark name;
struct format {
GQuark name;
@@
-45,6
+50,11
@@
struct format {
void (*double_write)(struct stream_pos *pos,
const struct declaration_float *float_declaration,
double v);
void (*double_write)(struct stream_pos *pos,
const struct declaration_float *float_declaration,
double v);
+ long double (*ldouble_read)(struct stream_pos *pos,
+ const struct declaration_float *float_declaration);
+ void (*ldouble_write)(struct stream_pos *pos,
+ const struct declaration_float *float_declaration,
+ long double v);
void (*string_copy)(struct stream_pos *dest, struct stream_pos *src,
const struct declaration_string *string_declaration);
void (*string_copy)(struct stream_pos *dest, struct stream_pos *src,
const struct declaration_string *string_declaration);
@@
-79,9
+89,12
@@
struct format {
const struct declaration_sequence *sequence_declaration);
void (*sequence_end)(struct stream_pos *pos,
const struct declaration_sequence *sequence_declaration);
const struct declaration_sequence *sequence_declaration);
void (*sequence_end)(struct stream_pos *pos,
const struct declaration_sequence *sequence_declaration);
+ struct trace_descriptor *(*open_trace)(const char *path, int flags);
+ void (*close_trace)(struct trace_descriptor *descriptor);
};
struct format *bt_lookup_format(GQuark qname);
};
struct format *bt_lookup_format(GQuark qname);
+void bt_fprintf_format_list(FILE *fp);
int bt_register_format(struct format *format);
/* TBD: format unregistration */
int bt_register_format(struct format *format);
/* TBD: format unregistration */
This page took
0.029402 seconds
and
4
git commands to generate.