Implement working with C native library. Remove duplicate structures.