api: Remove the inlines file and replace with library functions