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 mission-control 5 * 6 * Copyright (C) 2007-2009 Nokia Corporation. 7 * Copyright (C) 2009 Collabora Ltd. 8 * 9 * Contact: Alberto Mardegan <alberto.mardegan@nokia.com> 10 * 11 * This library is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU Lesser General Public License 13 * version 2.1 as published by the Free Software Foundation. 14 * 15 * This library is distributed in the hope that it will be useful, but 16 * WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * Lesser General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library; if not, write to the Free Software 22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 23 * 02110-1301 USA 24 * 25 */ 26 27 #ifndef MCD_MISC_H 28 #define MCD_MISC_H 29 30 #include <glib.h> 31 #include <glib-object.h> 32 33 #include <telepathy-glib/telepathy-glib.h> 34 #include <telepathy-glib/telepathy-glib-dbus.h> 35 36 G_BEGIN_DECLS 37 38 GHashTable *_mcd_deepcopy_asv (GHashTable *asv); 39 40 gchar *_mcd_build_error_string (const GError *error); 41 42 typedef void (*McdReadyCb) (gpointer object, const GError *error, 43 gpointer user_data); 44 void _mcd_object_call_when_ready (gpointer object, GQuark quark, 45 McdReadyCb callback, gpointer user_data); 46 void _mcd_object_call_on_struct_when_ready (gpointer object, gpointer strukt, 47 GQuark quark, McdReadyCb callback, 48 gpointer user_data); 49 void _mcd_object_ready (gpointer object, GQuark quark, const GError *error); 50 51 G_GNUC_INTERNAL 52 void _mcd_ext_register_dbus_glib_marshallers (void); 53 54 gboolean mcd_ensure_directory (const gchar *dir, GError **error); 55 56 G_GNUC_INTERNAL int _mcd_chmod_private (const gchar *filename); 57 58 gboolean mcd_nullable_variant_equal (GVariant *a, GVariant *b); 59 60 G_END_DECLS 61 #endif /* MCD_MISC_H */ 62