1 
2 /** Type for a OGR error */
3 typedef enum
4 {
5     OGRERR_NONE,                       /**< Success */
6     OGRERR_NOT_ENOUGH_DATA,            /**< Not enough data to deserialize */
7     OGRERR_NOT_ENOUGH_MEMORY,          /**< Not enough memory */
8     OGRERR_UNSUPPORTED_GEOMETRY_TYPE,  /**< Unsupported geometry type */
9     OGRERR_UNSUPPORTED_OPERATION,      /**< Unsupported operation */
10     OGRERR_CORRUPT_DATA,               /**< Corrupt data */
11     OGRERR_FAILURE,                    /**< Failure */
12     OGRERR_UNSUPPORTED_SRS,            /**< Unsupported SRS */
13     OGRERR_INVALID_HANDLE,             /**< Invalid handle */
14     OGRERR_NON_EXISTING_FEATURE        /**< Non existing feature. Added in GDAL 2.0 */
15 } OGRErr;
16 
17 /**
18  * <div rustbindgen replaces="OGRErr"></div>
19  */
20 typedef enum
21 {
22     /**
23      * <div rustbindgen replaces="PASS"></div>
24      *
25      * Should see PASS below.
26      */
27     FAIL,
28     /**
29      * <div rustbindgen replaces="OGRERR_NONE"></div>
30      *
31      * Should see OGRERR_NONE instead of CUSTOM_OGRERR_NONE below.
32      */
33     CUSTOM_OGRERR_NONE
34 } StrictOGRErr;
35