diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2010-12-04 15:28:50 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2010-12-04 15:28:50 +0000 |
commit | 2fee3114b46682b220c73aae7c4f2466dedb81ff (patch) | |
tree | d9dc3de599ec43fdf5cf70b59ac1fd049672914e /src/parserutils.c | |
parent | d485dbd52ebc6a911a5ddcf6891212fccb82e8c0 (diff) | |
download | libparserutils-2fee3114b46682b220c73aae7c4f2466dedb81ff.tar.gz libparserutils-2fee3114b46682b220c73aae7c4f2466dedb81ff.tar.bz2 |
Remove init/final code and turn aliases into static data structure. r=vince
svn path=/trunk/libparserutils/; revision=10961
Diffstat (limited to 'src/parserutils.c')
-rw-r--r-- | src/parserutils.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/parserutils.c b/src/parserutils.c deleted file mode 100644 index ed9b21f..0000000 --- a/src/parserutils.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of LibParserUtils. - * Licensed under the MIT License, - * http://www.opensource.org/licenses/mit-license.php - * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org> - */ - -#include <parserutils/parserutils.h> - -#include "charset/charset.h" - -/** - * Initialise the ParserUtils library for use. - * - * This _must_ be called before using any libparserutils functions - * - * \param aliases_file Pointer to name of file containing encoding alias data - * \param alloc Pointer to (de)allocation function - * \param pw Pointer to client-specific private data (may be NULL) - * \return PARSERUTILS_OK on success, applicable error otherwise. - */ -parserutils_error parserutils_initialise(const char *aliases_file, - parserutils_alloc alloc, void *pw) -{ - parserutils_error error; - - if (aliases_file == NULL || alloc == NULL) - return PARSERUTILS_BADPARM; - - error = parserutils_charset_initialise(aliases_file, alloc, pw); - if (error != PARSERUTILS_OK) - return error; - - return PARSERUTILS_OK; -} - -/** - * Clean up after Libparserutils - * - * \param alloc Pointer to (de)allocation function - * \param pw Pointer to client-specific private data (may be NULL) - * \return PARSERUTILS_OK on success, applicable error otherwise. - */ -parserutils_error parserutils_finalise(parserutils_alloc alloc, void *pw) -{ - if (alloc == NULL) - return PARSERUTILS_BADPARM; - - parserutils_charset_finalise(alloc, pw); - - return PARSERUTILS_OK; -} - - |