[postgis-devel] liblwgeom from separate extension

Sandro Santilli strk at keybit.net
Wed Jul 29 15:34:55 PDT 2015


On Sun, Jul 26, 2015 at 05:03:54PM +0200, Nicklas Avén wrote:

> 1)	To make it work I need functionality like the VarInt code and
> ByteBuffer code. Now I have just copied that code to my extension
> project, but it would of course be nice not to duplicate code. Would it
> be ok to make those functions "extern" and expose them in liblwgeom.h?

I'd be in favour of that.

> 2)	Why isn't lwerror exposed?

Because it's meant to be used by liblwgeom code, not external code.
External code, like yours, would be passing its own error reporter
function to liblwgeom, and could then directly use that same error
reporter.

--strk;



More information about the postgis-devel mailing list