1 /* GDBus - GLib D-Bus Library
3 * Copyright (C) 2008-2010 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: David Zeuthen <davidz@redhat.com>
37 #include "gdbusaddress.h"
38 #include "gdbusutils.h"
39 #include "gdbusconnection.h"
40 #include "gdbusserver.h"
41 #include "gioenumtypes.h"
42 #include "gdbusprivate.h"
43 #include "gdbusauthobserver.h"
44 #include "gio-marshal.h"
45 #include "ginitable.h"
46 #include "gsocketservice.h"
47 #include "gthreadedsocketservice.h"
48 #include "gresolver.h"
49 #include "ginetaddress.h"
50 #include "ginetsocketaddress.h"
51 #include "ginputstream.h"
52 #include "giostream.h"
55 #include "gunixsocketaddress.h"
63 * @short_description: Helper for accepting connections
66 * #GDBusServer is a helper for listening to and accepting D-Bus
69 * <example id="gdbus-peer-to-peer"><title>D-Bus peer-to-peer example</title><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../gio/tests/gdbus-example-peer.c"><xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback></xi:include></programlisting></example>
74 * @new_connection: Signal class handler for the #GDBusServer::new-connection signal.
76 * Class structure for #GDBusServer.
80 struct _GDBusServerClass
83 GObjectClass parent_class;
87 void (*new_connection) (GDBusServer *server,
88 GDBusConnection *connection);
91 struct _GDBusServerPrivate
93 GDBusServerFlags flags;
100 gchar *client_address;
102 GSocketListener *listener;
103 gboolean is_using_listener;
105 /* The result of g_main_context_get_thread_default() when the object
106 * was created (the GObject _init() function) - this is used for delivery
107 * of the :new-connection GObject signal.
109 GMainContext *main_context_at_construction;
113 GDBusAuthObserver *authentication_observer;
124 PROP_AUTHENTICATION_OBSERVER,
129 NEW_CONNECTION_SIGNAL,
133 guint _signals[LAST_SIGNAL] = {0};
135 static void initable_iface_init (GInitableIface *initable_iface);
137 G_DEFINE_TYPE_WITH_CODE (GDBusServer, g_dbus_server, G_TYPE_OBJECT,
138 G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE, initable_iface_init)
142 g_dbus_server_finalize (GObject *object)
144 GDBusServer *server = G_DBUS_SERVER (object);
146 if (server->priv->authentication_observer != NULL)
147 g_object_unref (server->priv->authentication_observer);
149 if (server->priv->listener != NULL)
150 g_object_unref (server->priv->listener);
152 g_free (server->priv->address);
153 g_free (server->priv->guid);
154 g_free (server->priv->client_address);
155 if (server->priv->nonce != NULL)
157 memset (server->priv->nonce, '\0', 16);
158 g_free (server->priv->nonce);
160 /* we could unlink the nonce file but I don't
161 * think it's really worth the effort/risk
163 g_free (server->priv->nonce_file);
165 if (server->priv->main_context_at_construction != NULL)
166 g_main_context_unref (server->priv->main_context_at_construction);
168 G_OBJECT_CLASS (g_dbus_server_parent_class)->finalize (object);
172 g_dbus_server_get_property (GObject *object,
177 GDBusServer *server = G_DBUS_SERVER (object);
182 g_value_set_flags (value, server->priv->flags);
186 g_value_set_string (value, server->priv->guid);
190 g_value_set_string (value, server->priv->address);
193 case PROP_CLIENT_ADDRESS:
194 g_value_set_string (value, server->priv->client_address);
198 g_value_set_boolean (value, server->priv->active);
201 case PROP_AUTHENTICATION_OBSERVER:
202 g_value_set_object (value, server->priv->authentication_observer);
206 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
212 g_dbus_server_set_property (GObject *object,
217 GDBusServer *server = G_DBUS_SERVER (object);
222 server->priv->flags = g_value_get_flags (value);
226 server->priv->guid = g_value_dup_string (value);
230 server->priv->address = g_value_dup_string (value);
233 case PROP_AUTHENTICATION_OBSERVER:
234 server->priv->authentication_observer = g_value_dup_object (value);
238 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
244 g_dbus_server_class_init (GDBusServerClass *klass)
246 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
248 gobject_class->finalize = g_dbus_server_finalize;
249 gobject_class->set_property = g_dbus_server_set_property;
250 gobject_class->get_property = g_dbus_server_get_property;
255 * Flags from the #GDBusServerFlags enumeration.
259 g_object_class_install_property (gobject_class,
261 g_param_spec_flags ("flags",
263 P_("Flags for the server"),
264 G_TYPE_DBUS_SERVER_FLAGS,
265 G_DBUS_SERVER_FLAGS_NONE,
268 G_PARAM_CONSTRUCT_ONLY |
269 G_PARAM_STATIC_NAME |
270 G_PARAM_STATIC_BLURB |
271 G_PARAM_STATIC_NICK));
276 * The guid of the server.
280 g_object_class_install_property (gobject_class,
282 g_param_spec_string ("guid",
284 P_("The guid of the server"),
288 G_PARAM_CONSTRUCT_ONLY |
289 G_PARAM_STATIC_NAME |
290 G_PARAM_STATIC_BLURB |
291 G_PARAM_STATIC_NICK));
294 * GDBusServer:address:
296 * The D-Bus address to listen on.
300 g_object_class_install_property (gobject_class,
302 g_param_spec_string ("address",
304 P_("The address to listen on"),
308 G_PARAM_CONSTRUCT_ONLY |
309 G_PARAM_STATIC_NAME |
310 G_PARAM_STATIC_BLURB |
311 G_PARAM_STATIC_NICK));
314 * GDBusServer:client-address:
316 * The D-Bus address that clients can use.
320 g_object_class_install_property (gobject_class,
322 g_param_spec_string ("client-address",
323 P_("Client Address"),
324 P_("The address clients can use"),
327 G_PARAM_STATIC_NAME |
328 G_PARAM_STATIC_BLURB |
329 G_PARAM_STATIC_NICK));
332 * GDBusServer:active:
334 * Whether the server is currently active.
338 g_object_class_install_property (gobject_class,
340 g_param_spec_string ("active",
342 P_("Whether the server is currently active"),
345 G_PARAM_STATIC_NAME |
346 G_PARAM_STATIC_BLURB |
347 G_PARAM_STATIC_NICK));
350 * GDBusServer:authentication-observer:
352 * A #GDBusAuthObserver object to assist in the authentication process or %NULL.
356 g_object_class_install_property (gobject_class,
357 PROP_AUTHENTICATION_OBSERVER,
358 g_param_spec_object ("authentication-observer",
359 P_("Authentication Observer"),
360 P_("Object used to assist in the authentication process"),
361 G_TYPE_DBUS_AUTH_OBSERVER,
364 G_PARAM_CONSTRUCT_ONLY |
365 G_PARAM_STATIC_NAME |
366 G_PARAM_STATIC_BLURB |
367 G_PARAM_STATIC_NICK));
370 * GDBusServer::new-connection:
371 * @server: The #GDBusServer emitting the signal.
372 * @connection: A #GDBusConnection for the new connection.
374 * Emitted when a new authenticated connection has been made. Use
375 * g_dbus_connection_get_peer_credentials() to figure out what
376 * identity (if any), was authenticated.
378 * If you want to accept the connection, simply ref the @connection
379 * object. Then call g_dbus_connection_close() and unref it when you
380 * are done with it. A typical thing to do when accepting a
381 * connection is to listen to the #GDBusConnection::closed signal.
383 * If #GDBusServer:flags contains %G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
384 * then the signal is emitted in a new thread dedicated to the
385 * connection. Otherwise the signal is emitted in the <link
386 * linkend="g-main-context-push-thread-default">thread-default main
387 * loop</link> of the thread that @server was constructed in.
389 * You are guaranteed that signal handlers for this signal runs
390 * before incoming messages on @connection are processed. This means
391 * that it's suitable to call g_dbus_connection_register_object() or
392 * similar from the signal handler.
396 _signals[NEW_CONNECTION_SIGNAL] = g_signal_new ("new-connection",
399 G_STRUCT_OFFSET (GDBusServerClass, new_connection),
402 g_cclosure_marshal_VOID__OBJECT,
405 G_TYPE_DBUS_CONNECTION);
408 g_type_class_add_private (klass, sizeof (GDBusServerPrivate));
412 g_dbus_server_init (GDBusServer *server)
414 server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, G_TYPE_DBUS_SERVER, GDBusServerPrivate);
416 server->priv->main_context_at_construction = g_main_context_get_thread_default ();
417 if (server->priv->main_context_at_construction != NULL)
418 g_main_context_ref (server->priv->main_context_at_construction);
422 on_run (GSocketService *service,
423 GSocketConnection *socket_connection,
424 GObject *source_object,
428 * g_dbus_server_new_sync:
429 * @address: A D-Bus address.
430 * @flags: Flags from the #GDBusServerFlags enumeration.
431 * @guid: A D-Bus GUID.
432 * @observer: A #GDBusAuthObserver or %NULL.
433 * @cancellable: A #GCancellable or %NULL.
434 * @error: Return location for server or %NULL.
436 * Creates a new D-Bus server that listens on the first address in
437 * @address that works.
439 * Once constructed, you can use g_dbus_server_get_client_address() to
440 * get a D-Bus address string that clients can use to connect.
442 * Connect to the #GDBusServer::new-connection signal to handle
443 * incoming connections.
445 * The returned #GDBusServer isn't active - you have to start it with
446 * g_dbus_server_start().
448 * See <xref linkend="gdbus-peer-to-peer"/> for how #GDBusServer can
451 * This is a synchronous failable constructor. See
452 * g_dbus_server_new() for the asynchronous version.
454 * Returns: A #GDBusServer or %NULL if @error is set. Free with
460 g_dbus_server_new_sync (const gchar *address,
461 GDBusServerFlags flags,
463 GDBusAuthObserver *observer,
464 GCancellable *cancellable,
469 g_return_val_if_fail (address != NULL, NULL);
470 g_return_val_if_fail (g_dbus_is_guid (guid), NULL);
471 g_return_val_if_fail (error == NULL || *error == NULL, NULL);
473 server = g_initable_new (G_TYPE_DBUS_SERVER,
479 "authentication-observer", observer,
483 /* Right now we don't have any transport not using the listener... */
484 g_assert (server->priv->is_using_listener);
485 g_signal_connect (G_SOCKET_SERVICE (server->priv->listener),
495 * g_dbus_server_get_client_address:
496 * @server: A #GDBusServer.
498 * Gets a D-Bus address string that can be used by clients to connect
501 * Returns: A D-Bus address string. Do not free, the string is owned
507 g_dbus_server_get_client_address (GDBusServer *server)
509 g_return_val_if_fail (G_IS_DBUS_SERVER (server), NULL);
510 return server->priv->client_address;
514 * g_dbus_server_get_guid:
515 * @server: A #GDBusServer.
517 * Gets the GUID for @server.
519 * Returns: A D-Bus GUID. Do not free this string, it is owned by @server.
524 g_dbus_server_get_guid (GDBusServer *server)
526 g_return_val_if_fail (G_IS_DBUS_SERVER (server), NULL);
527 return server->priv->guid;
531 * g_dbus_server_get_flags:
532 * @server: A #GDBusServer.
534 * Gets the flags for @server.
536 * Returns: A set of flags from the #GDBusServerFlags enumeration.
541 g_dbus_server_get_flags (GDBusServer *server)
543 g_return_val_if_fail (G_IS_DBUS_SERVER (server), G_DBUS_SERVER_FLAGS_NONE);
544 return server->priv->flags;
548 * g_dbus_server_is_active:
549 * @server: A #GDBusServer.
551 * Gets whether @server is active.
553 * Returns: %TRUE if server is active, %FALSE otherwise.
558 g_dbus_server_is_active (GDBusServer *server)
560 g_return_val_if_fail (G_IS_DBUS_SERVER (server), G_DBUS_SERVER_FLAGS_NONE);
561 return server->priv->active;
565 * g_dbus_server_start:
566 * @server: A #GDBusServer.
573 g_dbus_server_start (GDBusServer *server)
575 g_return_if_fail (G_IS_DBUS_SERVER (server));
576 if (server->priv->active)
578 /* Right now we don't have any transport not using the listener... */
579 g_assert (server->priv->is_using_listener);
580 g_socket_service_start (G_SOCKET_SERVICE (server->priv->listener));
581 server->priv->active = TRUE;
582 g_object_notify (G_OBJECT (server), "active");
586 * g_dbus_server_stop:
587 * @server: A #GDBusServer.
594 g_dbus_server_stop (GDBusServer *server)
596 g_return_if_fail (G_IS_DBUS_SERVER (server));
597 if (!server->priv->active)
599 /* Right now we don't have any transport not using the listener... */
600 g_assert (server->priv->is_using_listener);
601 g_socket_service_stop (G_SOCKET_SERVICE (server->priv->listener));
602 server->priv->active = FALSE;
603 g_object_notify (G_OBJECT (server), "active");
606 /* ---------------------------------------------------------------------------------------------------- */
614 ret = g_random_int_range (0, 60);
624 /* note that address_entry has already been validated => exactly one of path, tmpdir or abstract keys are set */
626 try_unix (GDBusServer *server,
627 const gchar *address_entry,
628 GHashTable *key_value_pairs,
634 const gchar *abstract;
635 GSocketAddress *address;
640 path = g_hash_table_lookup (key_value_pairs, "path");
641 tmpdir = g_hash_table_lookup (key_value_pairs, "tmpdir");
642 abstract = g_hash_table_lookup (key_value_pairs, "abstract");
646 address = g_unix_socket_address_new (path);
648 else if (tmpdir != NULL)
655 s = g_string_new (tmpdir);
656 g_string_append (s, "/dbus-");
657 for (n = 0; n < 8; n++)
658 g_string_append_c (s, random_ascii ());
660 /* prefer abstract namespace if available */
661 if (g_unix_socket_address_abstract_names_supported ())
662 address = g_unix_socket_address_new_with_type (s->str,
664 G_UNIX_SOCKET_ADDRESS_ABSTRACT);
666 address = g_unix_socket_address_new (s->str);
667 g_string_free (s, TRUE);
670 if (!g_socket_listener_add_address (server->priv->listener,
672 G_SOCKET_TYPE_STREAM,
673 G_SOCKET_PROTOCOL_DEFAULT,
674 NULL, /* source_object */
675 NULL, /* effective_address */
678 if (local_error->domain == G_IO_ERROR && local_error->code == G_IO_ERROR_ADDRESS_IN_USE)
680 g_error_free (local_error);
683 g_propagate_error (error, local_error);
689 else if (abstract != NULL)
691 if (!g_unix_socket_address_abstract_names_supported ())
693 g_set_error_literal (error,
695 G_IO_ERROR_NOT_SUPPORTED,
696 _("Abstract name space not supported"));
699 address = g_unix_socket_address_new_with_type (abstract,
701 G_UNIX_SOCKET_ADDRESS_ABSTRACT);
705 g_assert_not_reached ();
708 if (!g_socket_listener_add_address (server->priv->listener,
710 G_SOCKET_TYPE_STREAM,
711 G_SOCKET_PROTOCOL_DEFAULT,
712 NULL, /* source_object */
713 NULL, /* effective_address */
723 /* Fill out client_address if the connection attempt worked */
726 server->priv->is_using_listener = TRUE;
728 switch (g_unix_socket_address_get_address_type (G_UNIX_SOCKET_ADDRESS (address)))
730 case G_UNIX_SOCKET_ADDRESS_ABSTRACT:
731 server->priv->client_address = g_strdup_printf ("unix:abstract=%s",
732 g_unix_socket_address_get_path (G_UNIX_SOCKET_ADDRESS (address)));
735 case G_UNIX_SOCKET_ADDRESS_PATH:
736 server->priv->client_address = g_strdup_printf ("unix:path=%s",
737 g_unix_socket_address_get_path (G_UNIX_SOCKET_ADDRESS (address)));
741 g_assert_not_reached ();
745 g_object_unref (address);
751 /* ---------------------------------------------------------------------------------------------------- */
753 /* note that address_entry has already been validated =>
754 * both host and port (guranteed to be a number in [0, 65535]) are set (family is optional)
757 try_tcp (GDBusServer *server,
758 const gchar *address_entry,
759 GHashTable *key_value_pairs,
768 GSocketAddress *address;
770 GList *resolved_addresses;
776 resolved_addresses = NULL;
778 host = g_hash_table_lookup (key_value_pairs, "host");
779 port = g_hash_table_lookup (key_value_pairs, "port");
780 family = g_hash_table_lookup (key_value_pairs, "family");
781 if (g_hash_table_lookup (key_value_pairs, "noncefile") != NULL)
783 g_set_error_literal (error,
785 G_IO_ERROR_INVALID_ARGUMENT,
786 _("Cannot specify nonce file when creating a server"));
794 port_num = strtol (port, NULL, 10);
796 resolver = g_resolver_get_default ();
797 resolved_addresses = g_resolver_lookup_by_name (resolver,
801 if (resolved_addresses == NULL)
804 /* TODO: handle family */
805 for (l = resolved_addresses; l != NULL; l = l->next)
807 GInetAddress *address = G_INET_ADDRESS (l->data);
808 GSocketAddress *socket_address;
809 GSocketAddress *effective_address;
811 socket_address = g_inet_socket_address_new (address, port_num);
812 if (!g_socket_listener_add_address (server->priv->listener,
814 G_SOCKET_TYPE_STREAM,
815 G_SOCKET_PROTOCOL_TCP,
816 NULL, /* GObject *source_object */
820 g_object_unref (socket_address);
824 /* make sure we allocate the same port number for other listeners */
825 port_num = g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (effective_address));
827 g_object_unref (effective_address);
828 g_object_unref (socket_address);
836 gsize bytes_remaining;
838 server->priv->nonce = g_new0 (guchar, 16);
839 for (n = 0; n < 16; n++)
840 server->priv->nonce[n] = g_random_int_range (0, 256);
841 fd = g_file_open_tmp ("gdbus-nonce-file-XXXXXX",
842 &server->priv->nonce_file,
846 g_socket_listener_close (server->priv->listener);
851 bytes_remaining = 16;
852 while (bytes_remaining > 0)
855 ret = write (fd, server->priv->nonce + bytes_written, bytes_remaining);
862 g_io_error_from_errno (errno),
863 _("Error writing nonce file at `%s': %s"),
864 server->priv->nonce_file,
868 bytes_written += ret;
869 bytes_remaining -= ret;
872 server->priv->client_address = g_strdup_printf ("nonce-tcp:host=%s,port=%d,noncefile=%s",
875 server->priv->nonce_file);
879 server->priv->client_address = g_strdup_printf ("tcp:host=%s,port=%d", host, port_num);
881 server->priv->is_using_listener = TRUE;
885 g_list_foreach (resolved_addresses, (GFunc) g_object_unref, NULL);
886 g_list_free (resolved_addresses);
887 g_object_unref (resolver);
891 /* ---------------------------------------------------------------------------------------------------- */
896 GDBusConnection *connection;
900 emit_idle_data_free (EmitIdleData *data)
902 g_object_unref (data->server);
903 g_object_unref (data->connection);
908 emit_new_connection_in_idle (gpointer user_data)
910 EmitIdleData *data = user_data;
912 g_signal_emit (data->server,
913 _signals[NEW_CONNECTION_SIGNAL],
916 g_dbus_connection_start_message_processing (data->connection);
917 g_object_unref (data->connection);
922 /* Called in new thread */
924 on_run (GSocketService *service,
925 GSocketConnection *socket_connection,
926 GObject *source_object,
929 GDBusServer *server = G_DBUS_SERVER (user_data);
930 GDBusConnection *connection;
931 GDBusConnectionFlags connection_flags;
933 if (server->priv->nonce != NULL)
938 if (!g_input_stream_read_all (g_io_stream_get_input_stream (G_IO_STREAM (socket_connection)),
942 NULL, /* GCancellable */
946 if (bytes_read != 16)
949 if (memcmp (buf, server->priv->nonce, 16) != 0)
954 G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER |
955 G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING;
956 if (server->priv->flags & G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS)
957 connection_flags |= G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS;
959 connection = g_dbus_connection_new_sync (G_IO_STREAM (socket_connection),
962 server->priv->authentication_observer,
963 NULL, /* GCancellable */
965 if (connection == NULL)
968 if (server->priv->flags & G_DBUS_SERVER_FLAGS_RUN_IN_THREAD)
970 g_signal_emit (server,
971 _signals[NEW_CONNECTION_SIGNAL],
974 g_dbus_connection_start_message_processing (connection);
975 g_object_unref (connection);
979 GSource *idle_source;
982 data = g_new0 (EmitIdleData, 1);
983 data->server = g_object_ref (server);
984 data->connection = g_object_ref (connection);
986 idle_source = g_idle_source_new ();
987 g_source_set_priority (idle_source, G_PRIORITY_DEFAULT);
988 g_source_set_callback (idle_source,
989 emit_new_connection_in_idle,
991 (GDestroyNotify) emit_idle_data_free);
992 g_source_attach (idle_source, server->priv->main_context_at_construction);
993 g_source_unref (idle_source);
1001 initable_init (GInitable *initable,
1002 GCancellable *cancellable,
1005 GDBusServer *server = G_DBUS_SERVER (initable);
1014 if (!g_dbus_is_guid (server->priv->guid))
1016 g_set_error (&last_error,
1018 G_IO_ERROR_INVALID_ARGUMENT,
1019 _("The string `%s' is not a valid D-Bus GUID"),
1020 server->priv->guid);
1024 server->priv->listener = G_SOCKET_LISTENER (g_threaded_socket_service_new (-1));
1026 addr_array = g_strsplit (server->priv->address, ";", 0);
1028 for (n = 0; addr_array != NULL && addr_array[n] != NULL; n++)
1030 const gchar *address_entry = addr_array[n];
1031 GHashTable *key_value_pairs;
1032 gchar *transport_name;
1036 if (g_dbus_is_supported_address (address_entry,
1038 _g_dbus_address_parse_entry (address_entry,
1048 else if (g_strcmp0 (transport_name, "unix") == 0)
1049 ret = try_unix (server, address_entry, key_value_pairs, &this_error);
1051 else if (g_strcmp0 (transport_name, "tcp") == 0)
1052 ret = try_tcp (server, address_entry, key_value_pairs, FALSE, &this_error);
1053 else if (g_strcmp0 (transport_name, "nonce-tcp") == 0)
1054 ret = try_tcp (server, address_entry, key_value_pairs, TRUE, &this_error);
1056 g_set_error (&this_error,
1058 G_IO_ERROR_INVALID_ARGUMENT,
1059 _("Cannot listen on unsupported transport `%s'"),
1062 g_free (transport_name);
1063 if (key_value_pairs != NULL)
1064 g_hash_table_unref (key_value_pairs);
1068 g_assert (this_error == NULL);
1073 if (this_error != NULL)
1075 if (last_error != NULL)
1076 g_error_free (last_error);
1077 last_error = this_error;
1087 if (last_error != NULL)
1088 g_error_free (last_error);
1092 g_assert (last_error != NULL);
1093 g_propagate_error (error, last_error);
1100 initable_iface_init (GInitableIface *initable_iface)
1102 initable_iface->init = initable_init;
1105 /* ---------------------------------------------------------------------------------------------------- */
1107 #define __G_DBUS_SERVER_C__
1108 #include "gioaliasdef.c"