ext/geos_c_impl/factory.h in rgeo-0.3.13 vs ext/geos_c_impl/factory.h in rgeo-0.3.14
- old
+ new
@@ -50,11 +50,10 @@
and symbols so we don't have to do a lot of constant lookups and calls
to rb_intern.
*/
typedef struct {
VALUE feature_module;
- VALUE global_mixins;
VALUE feature_geometry;
VALUE feature_point;
VALUE feature_line_string;
VALUE feature_linear_ring;
VALUE feature_line;
@@ -76,10 +75,11 @@
VALUE geos_multi_polygon;
ID id_cast;
ID id_eql;
ID id_generate;
ID id_enum_for;
+ ID id_hash;
VALUE sym_force_new;
VALUE sym_keep_subtype;
#ifndef RGEO_GEOS_SUPPORTS_SETOUTPUTDIMENSION
VALUE psych_wkt_generator;
VALUE marshal_wkb_generator;
@@ -239,9 +239,32 @@
Compares the ruby classes and geometry factories of the two given ruby
objects. Returns Qtrue if everything is equal (that is, the two objects
are of the same type and factory), or Qfalse otherwise.
*/
VALUE rgeo_geos_klasses_and_factories_eql(VALUE obj1, VALUE obj2);
+
+/*
+ A tool for building up hash values.
+ You must pass in the context, a geos geometry, and a seed hash.
+ Returns an updated hash.
+ This call is useful in sequence, and should be bracketed by calls to
+ rb_hash_start and rb_hash_end.
+*/
+st_index_t rgeo_geos_coordseq_hash(GEOSContextHandle_t context, const GEOSGeometry* geom, st_index_t hash);
+
+/*
+ A tool for building up hash values.
+ You must pass in a factory, a feature type module, and a seed hash.
+ Returns an updated hash.
+ This call is useful in sequence, and should be bracketed by calls to
+ rb_hash_start and rb_hash_end.
+*/
+st_index_t rgeo_geos_objbase_hash(VALUE factory, VALUE type_module, st_index_t hash);
+
+/*
+ Internal tool for creating simple (FNV-1A 32 bit) hashes.
+*/
+st_index_t rgeo_internal_memhash(const void* ptr, long len);
RGEO_END_C
#endif