TODO complete ionice with C binding