1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2012 Igalia, S.L.
11 #include "soup-content-processor.h"
14 static void soup_content_processor_default_init (SoupContentProcessorInterface *interface);
16 G_DEFINE_INTERFACE (SoupContentProcessor, soup_content_processor, G_TYPE_OBJECT)
19 soup_content_processor_real_wrap_input (SoupContentProcessor *processor,
20 GInputStream *base_stream,
24 g_return_val_if_reached (NULL);
28 soup_content_processor_default_init (SoupContentProcessorInterface *interface)
30 interface->processing_stage = SOUP_STAGE_INVALID;
31 interface->wrap_input = soup_content_processor_real_wrap_input;
35 soup_content_processor_wrap_input (SoupContentProcessor *processor,
36 GInputStream *base_stream,
40 g_return_val_if_fail (SOUP_IS_CONTENT_PROCESSOR (processor), NULL);
42 return SOUP_CONTENT_PROCESSOR_GET_INTERFACE (processor)->wrap_input (processor, base_stream, msg, error);
46 soup_content_processor_get_processing_stage (SoupContentProcessor *processor)
48 g_return_val_if_fail (SOUP_IS_CONTENT_PROCESSOR (processor), SOUP_STAGE_INVALID);
50 return SOUP_CONTENT_PROCESSOR_GET_INTERFACE (processor)->processing_stage;