Move SERIALIZED_FORM to lwgeom_pg.h from liblwgeom.h since it references a PostgreSQL-only structure. Per report from Nicklas Aven.

git-svn-id: http://svn.osgeo.org/postgis/trunk@4310 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Mark Cave-Ayland 2009-07-16 21:32:48 +00:00
parent 903a69f3fa
commit 91a55bceb1
2 changed files with 8 additions and 6 deletions

View file

@ -718,12 +718,6 @@ char is_worth_caching_pglwgeom_bbox(const PG_LWGEOM *);
char is_worth_caching_serialized_bbox(const uchar *);
char is_worth_caching_lwgeom_bbox(const LWGEOM *);
/*
* Use this macro to extract the char * required
* by most functions from an PG_LWGEOM struct.
* (which is an PG_LWGEOM w/out int32 size casted to char *)
*/
#define SERIALIZED_FORM(x) ((uchar *)VARDATA((x)))
/*
* This function computes the size in bytes

View file

@ -83,6 +83,14 @@ extern int pglwgeom_getSRID(PG_LWGEOM *pglwgeom);
extern Oid getGeometryOID(void);
/* PG-dependant */
/*
* Use this macro to extract the char * required
* by most functions from an PG_LWGEOM struct.
* (which is an PG_LWGEOM w/out int32 size casted to char *)
*/
#define SERIALIZED_FORM(x) ((uchar *)VARDATA((x)))
/* BOX is postgresql standard type */
extern void box_to_box3d_p(BOX *box, BOX3D *out);
extern void box3d_to_box_p(BOX3D *box, BOX *out);