summaryrefslogtreecommitdiff
path: root/tests/headers/enum-variant-replaces.h
blob: 45eb4d7a543ccebd27cbe3db99e4560f42555653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

/** Type for a OGR error */
typedef enum
{
    OGRERR_NONE,                       /**< Success */
    OGRERR_NOT_ENOUGH_DATA,            /**< Not enough data to deserialize */
    OGRERR_NOT_ENOUGH_MEMORY,          /**< Not enough memory */
    OGRERR_UNSUPPORTED_GEOMETRY_TYPE,  /**< Unsupported geometry type */
    OGRERR_UNSUPPORTED_OPERATION,      /**< Unsupported operation */
    OGRERR_CORRUPT_DATA,               /**< Corrupt data */
    OGRERR_FAILURE,                    /**< Failure */
    OGRERR_UNSUPPORTED_SRS,            /**< Unsupported SRS */
    OGRERR_INVALID_HANDLE,             /**< Invalid handle */
    OGRERR_NON_EXISTING_FEATURE        /**< Non existing feature. Added in GDAL 2.0 */
} OGRErr;

/**
 * <div rustbindgen replaces="OGRErr"></div>
 */
typedef enum
{
    /**
     * <div rustbindgen replaces="PASS"></div>
     *
     * Should see PASS below.
     */
    FAIL,
    /**
     * <div rustbindgen replaces="OGRERR_NONE"></div>
     *
     * Should see OGRERR_NONE instead of CUSTOM_OGRERR_NONE below.
     */
    CUSTOM_OGRERR_NONE
} StrictOGRErr;