PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_backend_switch()

static void lwgeom_backend_switch ( const char *  newvalue,
void *  extra 
)
static

Definition at line 90 of file lwgeom_backend_api.c.

References LWGEOM_NUM_BACKENDS, and lwgeom_backend_definition::name.

Referenced by lwgeom_init_backend().

91 {
92  int i;
93 
94  if (!newvalue) { return; }
95 
96  for ( i = 0; i < LWGEOM_NUM_BACKENDS; ++i ) {
97  if ( !strcmp(lwgeom_backends[i].name, newvalue) ) {
99  return;
100  }
101  }
102  lwpgerror("Can't find %s geometry backend", newvalue );
103 }
struct lwgeom_backend_definition * lwgeom_backend
#define LWGEOM_NUM_BACKENDS
struct lwgeom_backend_definition lwgeom_backends[LWGEOM_NUM_BACKENDS]
Here is the caller graph for this function: