~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to gio/gnetworkmonitor.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Boston, MA 02111-1307, USA.
19
19
 */
20
20
 
 
21
#ifndef __G_NETWORK_MONITOR_H__
 
22
#define __G_NETWORK_MONITOR_H__
 
23
 
21
24
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
22
25
#error "Only <gio/gio.h> can be included directly."
23
26
#endif
24
27
 
25
 
#ifndef __G_NETWORK_MONITOR_H__
26
 
#define __G_NETWORK_MONITOR_H__
27
 
 
28
28
#include <gio/giotypes.h>
29
29
 
30
30
G_BEGIN_DECLS
71
71
GLIB_AVAILABLE_IN_2_32
72
72
GNetworkMonitor *g_network_monitor_get_default           (void);
73
73
 
 
74
GLIB_AVAILABLE_IN_ALL
74
75
gboolean         g_network_monitor_get_network_available (GNetworkMonitor     *monitor);
75
76
 
 
77
GLIB_AVAILABLE_IN_ALL
76
78
gboolean         g_network_monitor_can_reach             (GNetworkMonitor     *monitor,
77
79
                                                          GSocketConnectable  *connectable,
78
80
                                                          GCancellable        *cancellable,
79
81
                                                          GError             **error);
 
82
GLIB_AVAILABLE_IN_ALL
80
83
void             g_network_monitor_can_reach_async       (GNetworkMonitor     *monitor,
81
84
                                                          GSocketConnectable  *connectable,
82
85
                                                          GCancellable        *cancellable,
83
86
                                                          GAsyncReadyCallback  callback,
84
87
                                                          gpointer             user_data);
 
88
GLIB_AVAILABLE_IN_ALL
85
89
gboolean         g_network_monitor_can_reach_finish      (GNetworkMonitor     *monitor,
86
90
                                                          GAsyncResult        *result,
87
91
                                                          GError             **error);