/* * Asterisk -- A telephony toolkit for Linux. * * Copyright (C) 1999-2004, Digium, Inc. * * Mark Spencer * * res_odbc.c * Copyright (C) 2004 Anthony Minessale II */ #include #include #include #include #include #include #include #include #include #include #include #include #include #define MAX_ODBC_HANDLES 25 struct odbc_list { char name[80]; odbc_obj *obj; int used; }; static struct odbc_list ODBC_REGISTRY[MAX_ODBC_HANDLES]; static void odbc_destroy(void) { int x = 0; for (x = 0; x < MAX_ODBC_HANDLES; x++) { if (ODBC_REGISTRY[x].obj) { destroy_obdc_obj(&ODBC_REGISTRY[x].obj); ODBC_REGISTRY[x].obj = NULL; } } }