Commit 0bcb887a authored by Leigh Stoller's avatar Leigh Stoller

Add dbclose() routine.

parent c33a6d9b
......@@ -38,6 +38,12 @@ dbinit(void)
return 1;
}
void
dbclose(void)
{
mysql_close(&db);
}
MYSQL_RES *
mydb_query(char *query, int ncols, ...)
{
......
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2002 University of Utah and the Flux Group.
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -15,6 +15,7 @@
* Generic interface.
*/
int dbinit(void);
void dbclose(void);
/*
* TB functions.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment