112a9d9c8Sopenharmony_ci
212a9d9c8Sopenharmony_ci/** Type for a OGR error */
312a9d9c8Sopenharmony_citypedef enum
412a9d9c8Sopenharmony_ci{
512a9d9c8Sopenharmony_ci    OGRERR_NONE,                       /**< Success */
612a9d9c8Sopenharmony_ci    OGRERR_NOT_ENOUGH_DATA,            /**< Not enough data to deserialize */
712a9d9c8Sopenharmony_ci    OGRERR_NOT_ENOUGH_MEMORY,          /**< Not enough memory */
812a9d9c8Sopenharmony_ci    OGRERR_UNSUPPORTED_GEOMETRY_TYPE,  /**< Unsupported geometry type */
912a9d9c8Sopenharmony_ci    OGRERR_UNSUPPORTED_OPERATION,      /**< Unsupported operation */
1012a9d9c8Sopenharmony_ci    OGRERR_CORRUPT_DATA,               /**< Corrupt data */
1112a9d9c8Sopenharmony_ci    OGRERR_FAILURE,                    /**< Failure */
1212a9d9c8Sopenharmony_ci    OGRERR_UNSUPPORTED_SRS,            /**< Unsupported SRS */
1312a9d9c8Sopenharmony_ci    OGRERR_INVALID_HANDLE,             /**< Invalid handle */
1412a9d9c8Sopenharmony_ci    OGRERR_NON_EXISTING_FEATURE        /**< Non existing feature. Added in GDAL 2.0 */
1512a9d9c8Sopenharmony_ci} OGRErr;
1612a9d9c8Sopenharmony_ci
1712a9d9c8Sopenharmony_ci/**
1812a9d9c8Sopenharmony_ci * <div rustbindgen replaces="OGRErr"></div>
1912a9d9c8Sopenharmony_ci */
2012a9d9c8Sopenharmony_citypedef enum
2112a9d9c8Sopenharmony_ci{
2212a9d9c8Sopenharmony_ci    /**
2312a9d9c8Sopenharmony_ci     * <div rustbindgen replaces="PASS"></div>
2412a9d9c8Sopenharmony_ci     *
2512a9d9c8Sopenharmony_ci     * Should see PASS below.
2612a9d9c8Sopenharmony_ci     */
2712a9d9c8Sopenharmony_ci    FAIL,
2812a9d9c8Sopenharmony_ci    /**
2912a9d9c8Sopenharmony_ci     * <div rustbindgen replaces="OGRERR_NONE"></div>
3012a9d9c8Sopenharmony_ci     *
3112a9d9c8Sopenharmony_ci     * Should see OGRERR_NONE instead of CUSTOM_OGRERR_NONE below.
3212a9d9c8Sopenharmony_ci     */
3312a9d9c8Sopenharmony_ci    CUSTOM_OGRERR_NONE
3412a9d9c8Sopenharmony_ci} StrictOGRErr;
35