soapy: c api for the rest of device