1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2  *
3  * Copyright (C) 2008 Red Hat, Inc.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street - Suite 500, Boston, MA
18  * 02110-1335, USA.
19  */
20 
21 #ifndef __CSM_DBUS_CLIENT_H__
22 #define __CSM_DBUS_CLIENT_H__
23 
24 #include "csm-client.h"
25 
26 G_BEGIN_DECLS
27 
28 #define CSM_TYPE_DBUS_CLIENT            (csm_dbus_client_get_type ())
29 #define CSM_DBUS_CLIENT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), CSM_TYPE_DBUS_CLIENT, CsmDBusClient))
30 #define CSM_DBUS_CLIENT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), CSM_TYPE_DBUS_CLIENT, CsmDBusClientClass))
31 #define CSM_IS_DBUS_CLIENT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CSM_TYPE_DBUS_CLIENT))
32 #define CSM_IS_DBUS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CSM_TYPE_DBUS_CLIENT))
33 #define CSM_DBUS_CLIENT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), CSM_TYPE_DBUS_CLIENT, CsmDBusClientClass))
34 
35 typedef struct _CsmDBusClient        CsmDBusClient;
36 typedef struct _CsmDBusClientClass   CsmDBusClientClass;
37 
38 typedef struct CsmDBusClientPrivate  CsmDBusClientPrivate;
39 
40 struct _CsmDBusClient
41 {
42         CsmClient             parent;
43         CsmDBusClientPrivate *priv;
44 };
45 
46 struct _CsmDBusClientClass
47 {
48         CsmClientClass parent_class;
49 };
50 
51 GType          csm_dbus_client_get_type           (void) G_GNUC_CONST;
52 
53 CsmClient *    csm_dbus_client_new                (const char     *startup_id,
54                                                    const char     *bus_name);
55 const char *   csm_dbus_client_get_bus_name       (CsmDBusClient  *client);
56 
57 G_END_DECLS
58 
59 #endif /* __CSM_DBUS_CLIENT_H__ */
60