From e53a5011237467c73c72b338570e4a455d2d1ef6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 8 Nov 2008 23:08:30 +0000 Subject: Return errors from constructors and destructors. svn path=/trunk/libparserutils/; revision=5652 --- src/input/filter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input/filter.h') diff --git a/src/input/filter.h b/src/input/filter.h index 96941a6..0d72b92 100644 --- a/src/input/filter.h +++ b/src/input/filter.h @@ -35,10 +35,10 @@ typedef union parserutils_filter_optparams { /* Create an input filter */ -parserutils_filter *parserutils_filter_create(const char *int_enc, - parserutils_alloc alloc, void *pw); +parserutils_error parserutils_filter_create(const char *int_enc, + parserutils_alloc alloc, void *pw, parserutils_filter **filter); /* Destroy an input filter */ -void parserutils_filter_destroy(parserutils_filter *input); +parserutils_error parserutils_filter_destroy(parserutils_filter *input); /* Configure an input filter */ parserutils_error parserutils_filter_setopt(parserutils_filter *input, -- cgit v1.2.3