summaryrefslogtreecommitdiff
path: root/libsoup/http1/soup-message-io-source.h
blob: 7ab3eab8ed6f9b001cba3a10dd503bb27cd43f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/*
 * soup-message-io-source.c
 *
 * Copyright (C) 2000-2003, Ximian, Inc.
 * Copyright (C) 2021 Igalia S.L.
 */

#pragma once

#include "soup.h"

typedef struct {
        GSource source;
        GObject *msg;
        gboolean (*check_func) (GSource*);
        gboolean paused;
} SoupMessageIOSource;

typedef gboolean (*SoupMessageIOSourceFunc) (GObject     *msg,
                                             gpointer     user_data);

GSource *soup_message_io_source_new (GSource     *base_source,
                                     GObject     *msg,
                                     gboolean     paused,
                                     gboolean   (*check_func) (GSource*));