X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftypes.h;h=cc1965a0aa6fec46e2e74ae93c5f25926b46c67d;hp=ada6c6d1513d0e93ed880a3465e94fc68ed1dc20;hb=d06d03dbf4babd3426818f23770e15058a6876c4;hpb=11796b9629d5a870163e4edd67e457576553aaef diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index ada6c6d1..cc1965a0 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -214,14 +214,22 @@ struct field * struct_type_get_field_from_index(struct type_class_struct *struct_class, unsigned long index); +/* + * elem_class passed as parameter now belongs to the array. No need to free it + * explicitely. + */ struct type_class_array *array_type_new(const char *name, size_t len, struct type_class *elem_class); void array_type_free(struct type_class_array *array_class); +/* + * int_class and elem_class passed as parameter now belongs to the sequence. No + * need to free them explicitely. + */ struct type_class_sequence *sequence_type_new(const char *name, struct type_class_integer *int_class, struct type_class *elem_class); -void array_type_free(struct type_class_array *array_class); +void sequence_type_free(struct type_class_sequence *sequence_class); #endif /* _BABELTRACE_TYPES_H */