PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_backend_switch()

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

Definition at line 101 of file lwgeom_backend_api.c.

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_backends[LWGEOM_NUM_BACKENDS]
#define LWGEOM_NUM_BACKENDS
struct lwgeom_backend_definition * lwgeom_backend

References lwgeom_backend, lwgeom_backends, LWGEOM_NUM_BACKENDS, and lwgeom_backend_definition::name.

Referenced by lwgeom_init_backend().

Here is the caller graph for this function: