[PD-dev] writing wrapper objects in C