Add structures
[babeltrace.git] / include / babeltrace / format.h
index 43b38eed350b980641ca2f8f14bb8b63f507a8d5..bc2bdb067c0b75b1041738d2317ccd1a4bf7e03c 100644 (file)
@@ -40,25 +40,13 @@ struct format {
                          const struct type_class_integer *int_class,
                          int64_t v);
 
-       uint64_t (*bitfield_unsigned_read)(struct stream_pos *pos,
-                       const struct type_class_bitfield *bitfield_class);
-       int64_t (*bitfield_signed_read)(struct stream_pos *pos,
-                       const struct type_class_bitfield *bitfield_class);
-       void (*bitfield_unsigned_write)(struct stream_pos *pos,
-                       const struct type_class_bitfield *bitfield_class,
-                       uint64_t v);
-       void (*bitfield_signed_write)(struct stream_pos *pos,
-                       const struct type_class_bitfield *bitfield_class,
-                       int64_t v);
-
-       void (*float_copy)(struct stream_pos *destp,
-                          const struct type_class_float *dest,
-                          struct stream_pos *srcp,
+       void (*float_copy)(struct stream_pos *dest,
+                          struct stream_pos *src,
                           const struct type_class_float *src);
        double (*double_read)(struct stream_pos *pos,
-                             const struct type_class_float *src);
+                             const struct type_class_float *float_class);
        void (*double_write)(struct stream_pos *pos,
-                            const struct type_class_float *dest,
+                            const struct type_class_float *float_class,
                             double v);
 
        void (*string_copy)(struct stream_pos *dest, struct stream_pos *src,
@@ -74,7 +62,10 @@ struct format {
        void (*enum_write)(struct stream_pos *pos,
                           const struct type_class_enum *dest,
                           GQuark q);
-
+       void (*struct_begin)(struct stream_pos *pos,
+                            const struct type_class_struct *struct_class);
+       void (*struct_end)(struct stream_pos *pos,
+                          const struct type_class_struct *struct_class);
 };
 
 struct format *bt_lookup_format(GQuark qname);
This page took 0.023946 seconds and 4 git commands to generate.