1 /* vi: set et sw=4 ts=8 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 8 -*- */
3 /*
4  * This file is part of mission-control
5  *
6  * Copyright (C) 2007 Nokia Corporation.
7  *
8  * Contact: Naba Kumar  <naba.kumar@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 
26 #ifndef MCD_MASTER_H
27 #define MCD_MASTER_H
28 
29 #include <glib.h>
30 #include <glib-object.h>
31 
32 G_BEGIN_DECLS
33 #define MCD_TYPE_MASTER         (mcd_master_get_type ())
34 #define MCD_MASTER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), MCD_TYPE_MASTER, McdMaster))
35 #define MCD_MASTER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), MCD_TYPE_MASTER, McdMasterClass))
36 #define MCD_IS_MASTER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), MCD_TYPE_MASTER))
37 #define MCD_IS_MASTER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), MCD_TYPE_MASTER))
38 #define MCD_MASTER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MCD_TYPE_MASTER, McdMasterClass))
39 
40 typedef struct _McdMaster McdMaster;
41 typedef struct _McdMasterClass McdMasterClass;
42 typedef struct _McdMasterPrivate McdMasterPrivate;
43 
44 #include <mcd-manager.h>
45 #include <mcd-connection.h>
46 
47 struct _McdMaster
48 {
49     McdOperation parent;
50     McdMasterPrivate *priv;
51 };
52 
53 struct _McdMasterClass
54 {
55     McdOperationClass parent_class;
56 };
57 
58 GType mcd_master_get_type (void);
59 McdMaster *mcd_master_get_default (void);
60 
61 TpDBusDaemon *mcd_master_get_dbus_daemon (McdMaster *master);
62 void mcd_master_shutdown (McdMaster *self, const gchar *reason);
63 
64 G_END_DECLS
65 #endif /* MCD_MASTER_H */
66