From c689cd6a91cb2a31ce0d03f47e59ca4e3f368e9c Mon Sep 17 00:00:00 2001 From: Marco Barisione Date: Fri, 26 Jul 2013 10:44:30 +0100 Subject: uoa-utils: move from Empathy to tp-aw https://bugzilla.gnome.org/show_bug.cgi?id=699492 --- libempathy/empathy-uoa-utils.c | 49 ------------------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 libempathy/empathy-uoa-utils.c (limited to 'libempathy/empathy-uoa-utils.c') diff --git a/libempathy/empathy-uoa-utils.c b/libempathy/empathy-uoa-utils.c deleted file mode 100644 index 6032d36bd..000000000 --- a/libempathy/empathy-uoa-utils.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * empathy-uoa-utils.c - Source for UOA utilities - * Copyright (C) 2012 Collabora Ltd. - * @author Xavier Claessens - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "config.h" -#include "empathy-uoa-utils.h" - -#define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT -#include "empathy-debug.h" - -static AgManager *singleton = NULL; - -void -empathy_uoa_manager_set_default (AgManager *manager) -{ - if (singleton != NULL) - return; - - singleton = manager; - g_object_add_weak_pointer ((GObject *) singleton, (gpointer) &singleton); -} - -AgManager * -empathy_uoa_manager_dup (void) -{ - if (singleton != NULL) - return g_object_ref (singleton); - - singleton = ag_manager_new_for_service_type (EMPATHY_UOA_SERVICE_TYPE); - g_object_add_weak_pointer ((GObject *) singleton, (gpointer) &singleton); - - return singleton; -} -- cgit v1.2.3