summaryrefslogtreecommitdiff
path: root/libsoup/soup-session-sync.h
blob: 691a97f8a10dbd59b1c432c6c38d945564c4a6a1 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Copyright (C) 2000-2003, Ximian, Inc.
 */

#ifndef __SOUP_SESSION_SYNC_H__
#define __SOUP_SESSION_SYNC_H__ 1

#include <libsoup/soup-types.h>
#include <libsoup/soup-session.h>

G_BEGIN_DECLS

#define SOUP_TYPE_SESSION_SYNC            (soup_session_sync_get_type ())
#define SOUP_SESSION_SYNC(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_SESSION_SYNC, SoupSessionSync))
#define SOUP_SESSION_SYNC_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_SESSION_SYNC, SoupSessionSyncClass))
#define SOUP_IS_SESSION_SYNC(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), _soup_session_sync_get_type_undeprecated ()))
#define SOUP_IS_SESSION_SYNC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_SESSION_SYNC))
#define SOUP_SESSION_SYNC_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_SESSION_SYNC, SoupSessionSyncClass))

struct _SoupSessionSync {
	SoupSession parent;

};

typedef struct {
	SoupSessionClass parent_class;

	/* Padding for future expansion */
	void (*_libsoup_reserved1) (void);
	void (*_libsoup_reserved2) (void);
	void (*_libsoup_reserved3) (void);
	void (*_libsoup_reserved4) (void);
} SoupSessionSyncClass;

SOUP_AVAILABLE_IN_2_4
SOUP_DEPRECATED_IN_2_54
GType soup_session_sync_get_type (void);

static inline GType
_soup_session_sync_get_type_undeprecated (void)
{
	G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
	return soup_session_sync_get_type ();
	G_GNUC_END_IGNORE_DEPRECATIONS;
}

#ifndef SOUP_DISABLE_DEPRECATED
SOUP_AVAILABLE_IN_2_4
SOUP_DEPRECATED_IN_2_54_FOR(soup_session_new)
SoupSession *soup_session_sync_new              (void);
SOUP_AVAILABLE_IN_2_4
SOUP_DEPRECATED_IN_2_54_FOR(soup_session_new_with_options)
SoupSession *soup_session_sync_new_with_options (const char *optname1,
						 ...) G_GNUC_NULL_TERMINATED;
#endif

G_END_DECLS

#endif /* __SOUP_SESSION_SYNC_H__ */