-size_t ctf_string_copy(unsigned char *dest, const unsigned char *src);
-
-/*
- * A GQuark can be translated to/from strings with g_quark_from_string() and
- * g_quark_to_string().
- */
-GQuark ctf_enum_uint_to_quark(const struct enum_table *table, uint64_t v);
-GQuark ctf_enum_int_to_quark(const struct enum_table *table, uint64_t v);
-uint64_t ctf_enum_quark_to_uint(size_t len, int byte_order, GQuark q);
-int64_t ctf_enum_quark_to_int(size_t len, int byte_order, GQuark q);
-void ctf_enum_signed_insert(struct enum_table *table, int64_t v, GQuark q);
-void ctf_enum_unsigned_insert(struct enum_table *table, uint64_t v, GQuark q);
-struct enum_table *ctf_enum_new(void);
-void ctf_enum_destroy(struct enum_table *table);
+GQuark ctf_enum_read(struct stream_pos *pos,
+ const struct type_class_enum *src);
+void ctf_enum_write(struct stream_pos *pos,
+ const struct type_class_enum *dest,
+ GQuark q);
+void ctf_struct_begin(struct stream_pos *pos,
+ const struct type_class_struct *struct_class);
+void ctf_struct_end(struct stream_pos *pos,
+ const struct type_class_struct *struct_class);
+void ctf_array_begin(struct stream_pos *pos,
+ const struct type_class_array *array_class);
+void ctf_array_end(struct stream_pos *pos,
+ const struct type_class_array *array_class);
+void ctf_sequence_begin(struct stream_pos *pos,
+ const struct type_class_sequence *sequence_class);
+void ctf_sequence_end(struct stream_pos *pos,
+ const struct type_class_sequence *sequence_class);