1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of libgsignon-glib
6 * Copyright (C) 2009-2010 Nokia Corporation.
7 * Copyright (C) 2012 Canonical Ltd.
8 * Copyright (C) 2014 Intel Corporation.
10 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public License
14 * version 2.1 as published by the Free Software Foundation.
16 * This library is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 #ifndef _SIGNON_UTILS_H_
27 #define _SIGNON_UTILS_H_
29 #include <glib-object.h>
31 #define SIGNON_IS_NOT_CANCELLED(error) \
33 error->domain != G_IO_ERROR || \
34 error->code != G_IO_ERROR_CANCELLED)
37 GValue *signon_gvalue_new (GType type);
39 void signon_gvalue_free (gpointer val);
42 GHashTable *signon_hash_table_from_variant (GVariant *variant);
44 GVariant *signon_hash_table_to_variant (GHashTable *hash_table);
46 #endif //_SIGNON_UTILS_H_