|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-55de52a352
|
DBMI Library (client) - shutdown database connection. More...

Go to the source code of this file.
Functions | |
| int | db_shutdown_driver (dbDriver *driver) |
| Closedown the driver, and free the driver structure. | |
DBMI Library (client) - shutdown database connection.
SPDX-FileCopyrightText: 1999-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file shutdown.c.
Closedown the driver, and free the driver structure.
Note: the management of the memory for the driver structure probably should be handled differently.
db_start_driver() could take a pointer to driver structure as an argument, instead of returning the pointer to allocated then there would be no hidden free required
| driver | pointer to dbDriver to be freed |
Definition at line 33 of file shutdown.c.
References db__set_protocol_fds(), db_free(), DB_PROC_SHUTDOWN_DRIVER, DB_START_PROCEDURE_CALL, db_unset_error_handler_driver(), G_wait(), and NULL.
Referenced by db_close_database_shutdown_driver(), db_start_driver_open_database(), IL_write_point_2d(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_write_ascii().