IIOD: Use public libiio API when possible
IIOD: Use public libiio API when possible

Cleanup IIOD by using the public libiio API as much as possible.

Signed-off-by: Paul Cercueil <a027184a55211cd23e3f3094f1fdc728df5e0500@crapouillou.net>

analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio