--- l2_ch_null.c 2001/09/12 09:42:34 1.8
+++ l2_ch_null.c 2001/11/04 14:08:24 1.9
@@ -24,54 +24,19 @@
** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
** SUCH DAMAGE.
**
-** l2_ch_null.c: null channel implementation
+** l2_ch_null.c: null/discard channel implementation
*/
#include "l2.h"
-static l2_result_t hook_create(l2_context_t *ctx, l2_channel_t *ch)
-{
- return L2_OK;
-}
-
-static l2_result_t hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
-{
- return L2_OK;
-}
-
-static l2_result_t hook_open(l2_context_t *ctx, l2_channel_t *ch)
-{
- return L2_OK;
-}
-
-static l2_result_t hook_write(l2_context_t *ctx, l2_channel_t *ch, l2_level_t level, const char *buf, size_t buf_size)
-{
- return L2_OK;
-}
-
-static l2_result_t hook_flush(l2_context_t *ctx, l2_channel_t *ch)
-{
- return L2_OK;
-}
-
-static l2_result_t hook_close(l2_context_t *ctx, l2_channel_t *ch)
-{
- return L2_OK;
-}
-
-static l2_result_t hook_destroy(l2_context_t *ctx, l2_channel_t *ch)
-{
- return L2_OK;
-}
-
l2_handler_t l2_handler_null = {
L2_CHANNEL_OUTPUT,
- hook_create,
- hook_configure,
- hook_open,
- hook_write,
- hook_flush,
- hook_close,
- hook_destroy
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
};
|