Implement the remaining missing functions of the extended API

Based on a patch by Fredrik Svensson (thanks!).

Signed-off-by: Michael Heimpold <mhei@heimpold.de>