X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=types%2Fstruct.c;h=ba312111cd3d65c3f25a5bf8cc3ecc71af7dd14d;hb=596dd032fb31985bd7856efcd6ee3dc133479cec;hp=6012447bc2a678194aa4ba5dc8a278ea3e58073e;hpb=312623540c466defab45503fbe0ce7ec79dcce85;p=babeltrace.git diff --git a/types/struct.c b/types/struct.c index 6012447b..ba312111 100644 --- a/types/struct.c +++ b/types/struct.c @@ -216,3 +216,8 @@ struct_definition_get_field_from_index(struct definition_struct *_struct, return NULL; return g_ptr_array_index(_struct->fields, index); } + +uint64_t struct_declaration_len(struct declaration_struct *struct_declaration) +{ + return struct_declaration->fields->len; +}