lib.c revision 499b34cea04a46823d003d4c0520c8b03e8513cb
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Copyright (C) 1999-2001 Internet Software Consortium.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Permission to use, copy, modify, and distribute this software for any
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * purpose with or without fee is hereby granted, provided that the above
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * copyright notice and this permission notice appear in all copies.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai/* $Id: lib.c,v 1.14 2001/01/09 21:59:59 bwelling Exp $ */
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai *** Library Globals.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai *** Private to lib.c.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaistatic isc_once_t msgcat_once = ISC_ONCE_INIT;
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai *** Functions.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai isc_msgcat_open("libomapi.cat", &omapi_msgcat);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Initialize the OMAPI library's message catalog, omapi_msgcat, if it
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * has not already been initialized.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai RUNTIME_CHECK(isc_once_do(&msgcat_once, open_msgcat) == ISC_R_SUCCESS);
return (result);
omapi_lib_destroy(void) {
auth_destroy();