Simple Linked List in HDF5


Suppose we have the following struct:
typededef struct node{
int data;
node* next;

Then I want to find the equivalent compound type in HDF5 (c++). I was thinking of using H5Tvlen_create, but in this situation but this seems difficult since node* is not an HDF5 Datatype. Any ideas would be much appreciated in this regard.