• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ASYNC_H__
7 #define __SOUP_SESSION_ASYNC_H__ 1
8 
9 #include <libsoup/soup-types.h>
10 #include <libsoup/soup-session.h>
11 
12 G_BEGIN_DECLS
13 
14 #define SOUP_TYPE_SESSION_ASYNC            (soup_session_async_get_type ())
15 #define SOUP_SESSION_ASYNC(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_SESSION_ASYNC, SoupSessionAsync))
16 #define SOUP_SESSION_ASYNC_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_SESSION_ASYNC, SoupSessionAsyncClass))
17 #define SOUP_IS_SESSION_ASYNC(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), _soup_session_async_get_type_undeprecated ()))
18 #define SOUP_IS_SESSION_ASYNC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_SESSION_ASYNC))
19 #define SOUP_SESSION_ASYNC_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_SESSION_ASYNC, SoupSessionAsyncClass))
20 
21 struct _SoupSessionAsync {
22 	SoupSession parent;
23 
24 };
25 
26 typedef 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 } SoupSessionAsyncClass;
35 
36 SOUP_AVAILABLE_IN_2_4
37 SOUP_DEPRECATED_IN_2_54
38 GType soup_session_async_get_type (void);
39 
40 static inline GType
_soup_session_async_get_type_undeprecated(void)41 _soup_session_async_get_type_undeprecated (void)
42 {
43 	G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
44 	return soup_session_async_get_type ();
45 	G_GNUC_END_IGNORE_DEPRECATIONS;
46 }
47 
48 #ifndef SOUP_DISABLE_DEPRECATED
49 SOUP_AVAILABLE_IN_2_4
50 SOUP_DEPRECATED_IN_2_54_FOR(soup_session_new)
51 SoupSession *soup_session_async_new              (void);
52 SOUP_AVAILABLE_IN_2_4
53 SOUP_DEPRECATED_IN_2_54_FOR(soup_session_new)
54 SoupSession *soup_session_async_new_with_options (const char *optname1,
55 						  ...) G_GNUC_NULL_TERMINATED;
56 #endif
57 
58 G_END_DECLS
59 
60 #endif /* __SOUP_SESSION_ASYNC_H__ */
61