move handle C methods to c_api

This starts to clean up handle.rs from the C stuff.

Merge request reports

Loading