PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void lwgeom_backend_switch ( const char *  newvalue,
void *  extra 
)
static

Definition at line 83 of file lwgeom_backend_api.c.

References lwerror(), LWGEOM_NUM_BACKENDS, and lwgeom_backend_definition::name.

Referenced by lwgeom_init_backend().

84 {
85  int i;
86 
87  if (!newvalue) { return; }
88 
89  for ( i = 0; i < LWGEOM_NUM_BACKENDS; ++i ) {
90  if ( !strcmp(lwgeom_backends[i].name, newvalue) ) {
92  return;
93  }
94  }
95  lwerror("Can't find %s geometry backend", newvalue );
96 }
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
struct lwgeom_backend_definition * lwgeom_backend
#define LWGEOM_NUM_BACKENDS
struct lwgeom_backend_definition lwgeom_backends[LWGEOM_NUM_BACKENDS]

Here is the call graph for this function:

Here is the caller graph for this function: