Changes between Version 3 and Version 4 of RFC3
- Timestamp:
- Oct 17, 2008, 12:40:09 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RFC3
v3 v4 19 19 The intent will be to altogether replace the existing functions with the _r functions in a future release, making the thread safe versions the only supported functions. 20 20 21 === Handle Definition === 22 Here are the internals of the handle and how the application visual handle will look. 23 24 {{{ 25 typedef struct GEOSContextHandleInternal 26 { 27 const void *geomFactory; 28 GEOSMessageHandler NOTICE_MESSAGE; 29 GEOSMessageHandler ERROR_MESSAGE; 30 int WKBOutputDims; 31 int WKBByteOrder; 32 int initialized; 33 } GEOSConextHandleInternal_t; 34 35 typedef void *GEOSContextHandle_t; 36 }}} 37 21 38 === Example Prototypes === 22 39 Here are examples of what some of the new function prototypes would be. 23 40 24 41 {{{ 25 extern void GEOS_DLL initGEOS_r(GEOSConextHandle_t *handle, 26 GEOSMessageHandler notice_function, 27 GEOSMessageHandler error_function); 28 extern void GEOS_DLL finishGEOS_r(GEOSContextHandle_t *handle); 42 GEOSContextHandle_t GEOS_DLL initGEOS_r( GEOSMessageHandler notice_function, 43 GEOSMessageHandler error_function); 44 extern void GEOS_DLL finishGEOS_r(GEOSContextHandle_t handle); 29 45 30 46 31 extern GEOSGeometry GEOS_DLL *GEOSGeom_createPoint_r(GEOSContextHandle_t *handle,47 extern GEOSGeometry GEOS_DLL *GEOSGeom_createPoint_r(GEOSContextHandle_t handle, 32 48 GEOSCoordSequence* s); 33 extern GEOSGeometry GEOS_DLL *GEOSGeom_createLinearRing_r(GEOSContextHandle_t *handle,49 extern GEOSGeometry GEOS_DLL *GEOSGeom_createLinearRing_r(GEOSContextHandle_t handle, 34 50 GEOSCoordSequence* s); 35 extern GEOSGeometry GEOS_DLL *GEOSGeom_createLineString_r(GEOSContextHandle_t *handle,51 extern GEOSGeometry GEOS_DLL *GEOSGeom_createLineString_r(GEOSContextHandle_t handle, 36 52 GEOSCoordSequence* s); 37 53 }}}