soapy: filling in device c api