~ubuntu-branches/ubuntu/saucy/glib2.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gio/gsocketservice.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-06-25 12:43:56 UTC
  • mfrom: (1.63.22)
  • Revision ID: package-import@ubuntu.com-20130625124356-597xf4lpikauchiy
Tags: 2.37.3-1ubuntu1
* Resynchronise on unrelease Debian SVN (glib is in NEW there). Remaining
  change:
  - Build-Depend on python:any for cross building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
#include "gsocketlistener.h"
66
66
#include "gsocketconnection.h"
67
67
 
68
 
 
69
 
static guint g_socket_service_incoming_signal;
70
 
 
71
 
G_DEFINE_TYPE (GSocketService, g_socket_service, G_TYPE_SOCKET_LISTENER);
72
 
 
73
 
G_LOCK_DEFINE_STATIC(active);
74
 
 
75
68
struct _GSocketServicePrivate
76
69
{
77
70
  GCancellable *cancellable;
79
72
  guint outstanding_accept : 1;
80
73
};
81
74
 
 
75
static guint g_socket_service_incoming_signal;
 
76
 
 
77
G_LOCK_DEFINE_STATIC(active);
 
78
 
 
79
G_DEFINE_TYPE_WITH_PRIVATE (GSocketService, g_socket_service, G_TYPE_SOCKET_LISTENER)
 
80
 
82
81
static void g_socket_service_ready (GObject      *object,
83
82
                                    GAsyncResult *result,
84
83
                                    gpointer      user_data);
94
93
static void
95
94
g_socket_service_init (GSocketService *service)
96
95
{
97
 
  service->priv = G_TYPE_INSTANCE_GET_PRIVATE (service,
98
 
                                               G_TYPE_SOCKET_SERVICE,
99
 
                                               GSocketServicePrivate);
 
96
  service->priv = g_socket_service_get_instance_private (service);
100
97
  service->priv->cancellable = g_cancellable_new ();
101
98
  service->priv->active = TRUE;
102
99
}
244
241
  GObjectClass *gobject_class = G_OBJECT_CLASS (class);
245
242
  GSocketListenerClass *listener_class = G_SOCKET_LISTENER_CLASS (class);
246
243
 
247
 
  g_type_class_add_private (class, sizeof (GSocketServicePrivate));
248
 
 
249
244
  gobject_class->finalize = g_socket_service_finalize;
250
245
  listener_class->changed = g_socket_service_changed;
251
246
  class->incoming = g_socket_service_real_incoming;