PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_backend_switch()

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

Definition at line 101 of file lwgeom_backend_api.c.

References LWGEOM_NUM_BACKENDS, and lwgeom_backend_definition::name.

Referenced by lwgeom_init_backend().

102 {
103  int i;
104 
105  if (!newvalue) { return; }
106 
107  for ( i = 0; i < LWGEOM_NUM_BACKENDS; ++i ) {
108  if ( !strcmp(lwgeom_backends[i].name, newvalue) ) {
110  return;
111  }
112  }
113  lwpgerror("Can't find %s geometry backend", newvalue );
114 }
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: