EDataCapture

EDataCapture — Capture data from streams

Functions

Types and Values

struct EDataCapture

Includes

#include <e-util/e-util.h>

Description

EDataCapture is a GConverter that captures data until the end of the input data is seen, then emits a “finished” signal with the captured data in a GBytes instance.

When used with GConverterInputStream or GConverterOutputStream, an EDataCapture can discreetly capture the stream content for the purpose of caching.

Functions

e_data_capture_new ()

EDataCapture *
e_data_capture_new (GMainContext *main_context);

e_data_capture_new is deprecated and should not be used in newly-written code.

Creates a new EDataCapture. If main_context is NULL, then the “finished” signal will be emitted from the thread-default GMainContext for this thread.

Parameters

main_context

a GMainContext, or NULL

 

Returns

an EDataCapture


e_data_capture_ref_main_context ()

GMainContext *
e_data_capture_ref_main_context (EDataCapture *data_capture);

e_data_capture_ref_main_context is deprecated and should not be used in newly-written code.

Returns the GMainContext from which the “finished” signal is emitted.

The returned GMainContext is referenced for thread-safety and must be unreferenced with g_main_context_unref() when finished with it.

Parameters

data_capture

an EDataCapture

 

Returns

a GMainContext

Types and Values

struct EDataCapture

struct EDataCapture {
	GObject parent;
	EDataCapturePrivate *priv;
};

EDataCapture is deprecated and should not be used in newly-written code.

Contains only private data that should be read and manipulated using the functions below.