Wraper functions for librrd in C