typedef struct { int length; Update **list;}Updates; typedef struct { int update_id; int type; Message *message; }Update;