From c3933b7972672e533c33cf9f401a1dea83ba1368 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 24 Aug 2012 13:13:07 +0200 Subject: UOA: Use an AgManager singleton This is especially useful in empathy-keyring where it would reload all accounts each time we set a password. https://bugzilla.gnome.org/show_bug.cgi?id=680776 --- libempathy/empathy-uoa-utils.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libempathy/empathy-uoa-utils.h (limited to 'libempathy/empathy-uoa-utils.h') diff --git a/libempathy/empathy-uoa-utils.h b/libempathy/empathy-uoa-utils.h new file mode 100644 index 000000000..2cd7a41a2 --- /dev/null +++ b/libempathy/empathy-uoa-utils.h @@ -0,0 +1,35 @@ +/* + * empathy-utils.h - Header 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 + */ + +#ifndef __EMPATHY_UOA_UTILS_H__ +#define __EMPATHY_UOA_UTILS_H__ + +#include + +#define EMPATHY_UOA_SERVICE_TYPE "IM" + +G_BEGIN_DECLS + +void empathy_uoa_manager_set_default (AgManager *manager); +AgManager *empathy_uoa_manager_dup (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_UOA_UTILS_H__*/ -- cgit v1.2.3