1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2000-2003, Ximian, Inc.
4 */
5
6#ifndef __SOUP_SESSION_SYNC_H__
7#define __SOUP_SESSION_SYNC_H__ 1
8
9#include <libsoup/soup-types.h>
10#include <libsoup/soup-session.h>
11
12G_BEGIN_DECLS
13
14#define SOUP_TYPE_SESSION_SYNC (soup_session_sync_get_type ())
15#define SOUP_SESSION_SYNC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_SESSION_SYNC, SoupSessionSync))
16#define SOUP_SESSION_SYNC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_SESSION_SYNC, SoupSessionSyncClass))
17#define SOUP_IS_SESSION_SYNC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), _soup_session_sync_get_type_undeprecated ()))
18#define SOUP_IS_SESSION_SYNC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_SESSION_SYNC))
19#define SOUP_SESSION_SYNC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_SESSION_SYNC, SoupSessionSyncClass))
20
21struct _SoupSessionSync {
22 SoupSession parent;
23
24};
25
26typedef struct {
27 SoupSessionClass parent_class;
28
29 /* Padding for future expansion */
30 void (*_libsoup_reserved1) (void);
31 void (*_libsoup_reserved2) (void);
32 void (*_libsoup_reserved3) (void);
33 void (*_libsoup_reserved4) (void);
34} SoupSessionSyncClass;
35
36SOUP_AVAILABLE_IN_2_4
37SOUP_DEPRECATED_IN_2_54
38GType soup_session_sync_get_type (void);
39
40static inline GType
41_soup_session_sync_get_type_undeprecated (void)
42{
43 G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
44 return soup_session_sync_get_type ();
45 G_GNUC_END_IGNORE_DEPRECATIONS;
46}
47
48#ifndef SOUP_DISABLE_DEPRECATED
49SOUP_AVAILABLE_IN_2_4
50SOUP_DEPRECATED_IN_2_54_FOR(soup_session_new)
51SoupSession *soup_session_sync_new (void);
52SOUP_AVAILABLE_IN_2_4
53SOUP_DEPRECATED_IN_2_54_FOR(soup_session_new_with_options)
54SoupSession *soup_session_sync_new_with_options (const char *optname1,
55 ...) G_GNUC_NULL_TERMINATED;
56#endif
57
58G_END_DECLS
59
60#endif /* __SOUP_SESSION_SYNC_H__ */
61