C API port for LComp library