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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
use libc::{c_char, c_double, c_void};

#[repr(C)]
pub struct GEOSWKTReader {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSWKBReader {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSWKTWriter {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSWKBWriter {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSPreparedGeometry {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSCoordSequence {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSGeometry {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSContextHandle_HS {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSSTRtree {
    private: [u8; 0],
}
#[repr(C)]
pub struct GEOSBufferParams {
    private: [u8; 0],
}

#[allow(non_camel_case_types)]
pub type GEOSContextHandle_t = *mut GEOSContextHandle_HS;
#[allow(non_camel_case_types)]
pub type GEOSMessageHandler_r =
    Option<unsafe extern "C" fn(message: *const c_char, userdata: *mut c_void)>;
#[allow(non_camel_case_types)]
pub type GEOSQueryCallback =
    Option<unsafe extern "C" fn(item: *mut c_void, userdata: *mut c_void)>;
#[allow(non_camel_case_types)]
pub type GEOSDistanceCallback =
    Option<unsafe extern "C" fn(
        item1: *const c_void,
        item2: *const c_void,
        distance: *mut c_double,
        userdata: *mut c_void)>;
#[allow(non_camel_case_types)]
pub type GEOSInterruptCallback =
    Option<unsafe extern "C" fn()>;