Blame libsoup/soup-content-processor.c

rpm-build 4f3c61
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
rpm-build 4f3c61
/*
rpm-build 4f3c61
 * Copyright (C) 2012 Igalia, S.L.
rpm-build 4f3c61
 */
rpm-build 4f3c61
rpm-build 4f3c61
rpm-build 4f3c61
#ifdef HAVE_CONFIG_H
rpm-build 4f3c61
#include <config.h>
rpm-build 4f3c61
#endif
rpm-build 4f3c61
rpm-build 4f3c61
#include "soup-content-processor.h"
rpm-build 4f3c61
#include "soup.h"
rpm-build 4f3c61
rpm-build 4f3c61
G_DEFINE_INTERFACE (SoupContentProcessor, soup_content_processor, G_TYPE_OBJECT)
rpm-build 4f3c61
rpm-build 4f3c61
static GInputStream *
rpm-build 4f3c61
soup_content_processor_real_wrap_input (SoupContentProcessor *processor,
rpm-build 4f3c61
					GInputStream *base_stream,
rpm-build 4f3c61
					SoupMessage *msg,
rpm-build 4f3c61
					GError **error)
rpm-build 4f3c61
{
rpm-build 4f3c61
	g_return_val_if_reached (NULL);
rpm-build 4f3c61
}
rpm-build 4f3c61
rpm-build 4f3c61
static void
rpm-build 4f3c61
soup_content_processor_default_init (SoupContentProcessorInterface *interface)
rpm-build 4f3c61
{
rpm-build 4f3c61
	interface->processing_stage = SOUP_STAGE_INVALID;
rpm-build 4f3c61
	interface->wrap_input = soup_content_processor_real_wrap_input;
rpm-build 4f3c61
}
rpm-build 4f3c61
rpm-build 4f3c61
GInputStream *
rpm-build 4f3c61
soup_content_processor_wrap_input (SoupContentProcessor *processor,
rpm-build 4f3c61
				   GInputStream *base_stream,
rpm-build 4f3c61
				   SoupMessage *msg,
rpm-build 4f3c61
				   GError **error)
rpm-build 4f3c61
{
rpm-build 4f3c61
	g_return_val_if_fail (SOUP_IS_CONTENT_PROCESSOR (processor), NULL);
rpm-build 4f3c61
rpm-build 4f3c61
	return SOUP_CONTENT_PROCESSOR_GET_INTERFACE (processor)->wrap_input (processor, base_stream, msg, error);
rpm-build 4f3c61
}
rpm-build 4f3c61
rpm-build 4f3c61
SoupProcessingStage
rpm-build 4f3c61
soup_content_processor_get_processing_stage (SoupContentProcessor *processor)
rpm-build 4f3c61
{
rpm-build 4f3c61
	g_return_val_if_fail (SOUP_IS_CONTENT_PROCESSOR (processor), SOUP_STAGE_INVALID);
rpm-build 4f3c61
rpm-build 4f3c61
	return SOUP_CONTENT_PROCESSOR_GET_INTERFACE (processor)->processing_stage;
rpm-build 4f3c61
}