X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgdbusauthmechanismanon.c;h=f7c9917cda1844d8e01177170d9ee972fa15fff6;hb=7103484017ff000d01ed94567539d37fa09b32b2;hp=2ab3f3ba17f35c45ff4891d484ae68b292b5dee2;hpb=0cf467c2ca92ece9625dbc54ad3065ad5298f735;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gdbusauthmechanismanon.c b/gio/gdbusauthmechanismanon.c index 2ab3f3b..f7c9917 100644 --- a/gio/gdbusauthmechanismanon.c +++ b/gio/gdbusauthmechanismanon.c @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: David Zeuthen */ @@ -27,7 +25,6 @@ #include "gioenumtypes.h" #include "glibintl.h" -#include "gioalias.h" struct _GDBusAuthMechanismAnonPrivate { @@ -71,7 +68,7 @@ static void mechanism_client_shutdown (GDBusAuthMe /* ---------------------------------------------------------------------------------------------------- */ -G_DEFINE_TYPE (GDBusAuthMechanismAnon, _g_dbus_auth_mechanism_anon, G_TYPE_DBUS_AUTH_MECHANISM); +G_DEFINE_TYPE_WITH_PRIVATE (GDBusAuthMechanismAnon, _g_dbus_auth_mechanism_anon, G_TYPE_DBUS_AUTH_MECHANISM) /* ---------------------------------------------------------------------------------------------------- */ @@ -90,8 +87,6 @@ _g_dbus_auth_mechanism_anon_class_init (GDBusAuthMechanismAnonClass *klass) GObjectClass *gobject_class; GDBusAuthMechanismClass *mechanism_class; - g_type_class_add_private (klass, sizeof (GDBusAuthMechanismAnonPrivate)); - gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = _g_dbus_auth_mechanism_anon_finalize; @@ -117,9 +112,7 @@ _g_dbus_auth_mechanism_anon_class_init (GDBusAuthMechanismAnonClass *klass) static void _g_dbus_auth_mechanism_anon_init (GDBusAuthMechanismAnon *mechanism) { - mechanism->priv = G_TYPE_INSTANCE_GET_PRIVATE (mechanism, - G_TYPE_DBUS_AUTH_MECHANISM_ANON, - GDBusAuthMechanismAnonPrivate); + mechanism->priv = _g_dbus_auth_mechanism_anon_get_instance_private (mechanism); } /* ---------------------------------------------------------------------------------------------------- */ @@ -188,8 +181,7 @@ mechanism_server_initiate (GDBusAuthMechanism *mechanism, g_return_if_fail (G_IS_DBUS_AUTH_MECHANISM_ANON (mechanism)); g_return_if_fail (!m->priv->is_server && !m->priv->is_client); - if (initial_response != NULL) - g_debug ("ANONYMOUS: initial_response was `%s'", initial_response); + //g_debug ("ANONYMOUS: initial_response was '%s'", initial_response); m->priv->is_server = TRUE; m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_ACCEPTED; @@ -326,6 +318,3 @@ mechanism_client_shutdown (GDBusAuthMechanism *mechanism) } /* ---------------------------------------------------------------------------------------------------- */ - -#define __G_DBUS_AUTH_MECHANISM_ANON_C__ -#include "gioaliasdef.c"