X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fformat.h;h=c6dedc1afbd14279054708add6d766e6a5cd4c76;hp=7162c0ea0822cbb2320317407aa1be87d0020f5e;hb=4c8bfb7e0a9cef6e74cefa38ed54bf8cbd424183;hpb=ac65e35509398c6f3f27b26e9309750a565e1cbd diff --git a/include/babeltrace/format.h b/include/babeltrace/format.h index 7162c0ea..c6dedc1a 100644 --- a/include/babeltrace/format.h +++ b/include/babeltrace/format.h @@ -19,6 +19,7 @@ * all copies or substantial portions of the Software. */ +#include #include #include @@ -36,9 +37,9 @@ struct format { const struct type_class_integer *int_class, int64_t v); - void (*float_copy)(struct stream_pos *dest, - struct stream_pos *src, - const struct type_class_float *src); + void (*float_copy)(struct stream_pos *destp, + struct stream_pos *srcp, + const struct type_class_float *float_class); double (*double_read)(struct stream_pos *pos, const struct type_class_float *float_class); void (*double_write)(struct stream_pos *pos, @@ -73,7 +74,7 @@ struct format { }; struct format *bt_lookup_format(GQuark qname); -int bt_register_format(const struct format *format); +int bt_register_format(struct format *format); /* TBD: format unregistration */