15 #include <grass/temporal.h> 16 #include <grass/glocale.h> 88 #define DATABASE_NAME 1 90 static char *get_mapset_connection_name(
const char *mapset,
int contype)
92 const char *val =
NULL;
93 char *ret_val =
NULL;;
98 G_debug(1,
"Checking mapset <%s>", mapset);
150 return get_mapset_connection_name(mapset,
DRIVER_NAME);
int tgis_get_connection(dbConnection *connection)
Get Temporal GIS DB connection settings.
char * G_store(const char *s)
Copy string to allocated memory.
void G_create_alt_env(void)
Set up alternative environment variables.
void G_setenv2(const char *name, const char *value, int loc)
Set environment variable from specific place (updates .gisrc)
int G_debug(int level, const char *msg,...)
Print debugging message.
const char * G_getenv_nofatal(const char *name)
Get environment variable.
void G_setenv_nogisrc(const char *name, const char *value)
Set environment name to value (doesn't update .gisrc)
char * tgis_get_driver_name(void)
Get TGIS driver name.
const char * G_getenv_nofatal2(const char *name, int loc)
Get environment variable from specific place.
char * tgis_get_mapset_driver_name(const char *mapset)
Get TGIS driver name from a specific mapset.
int G_mapset_permissions2(const char *gisdbase, const char *location, const char *mapset)
Check for user mapset permission.
int tgis_set_connection(dbConnection *connection)
Set Temporal GIS DB connection settings.
void G__read_mapset_env(void)
Force to read the mapset environment file VAR.
char * tgis_get_database_name(void)
Get TGIS database name.
void G_zero(void *buf, int i)
Zero out a buffer, buf, of length i.
void G_switch_env(void)
Switch environments.
char * tgis_get_mapset_database_name(const char *mapset)
Get TGIS database name.
void G_warning(const char *msg,...)
Print a warning message to stderr.