Refresh upstream 2.1.0 release
[profile/ivi/libgsignon-glib.git] / libgsignon-glib / signon-dbus-queue.h
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /*
4  * This file is part of libgsignon-glib
5  *
6  * Copyright (C) 2009-2010 Nokia Corporation.
7  *
8  * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public License
12  * version 2.1 as published by the Free Software Foundation.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23  */
24
25 #ifndef SIGNONDBUSQUEUEDDATA_H
26 #define SIGNONDBUSQUEUEDDATA_H
27
28 #include <glib.h>
29 #include <glib-object.h>
30
31 G_BEGIN_DECLS
32
33 typedef void (*SignonReadyCb) (gpointer object, const GError *error,
34                                gpointer user_data);
35
36 void _signon_object_call_when_ready (gpointer object, GQuark quark,
37                                     SignonReadyCb callback, gpointer user_data);
38
39 void _signon_object_ready (gpointer object, GQuark quark, const GError *error);
40 void _signon_object_not_ready (gpointer object);
41
42 const GError *_signon_object_last_error (gpointer object);
43
44 G_END_DECLS
45 #endif /* SIGNONDBUSQUEUEDDATA_H */