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 gsignond
6 * Copyright (C) 2012 Intel Corporation.
8 * Contact: Amarnath Valluri <amarnath.valluri@linux.intel.com>
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
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.
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
26 #ifndef __GSIGNOND_DBUS_SERVER_H_
27 #define __GSIGNOND_DBUS_SERVER_H_
31 #include <glib-object.h>
35 #define GSIGNOND_TYPE_DBUS_SERVER (gsignond_dbus_server_get_type())
36 #define GSIGNOND_DBUS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GSIGNOND_TYPE_DBUS_SERVER, GSignondDbusServer))
37 #define GSIGNOND_DBUS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GSIGNOND_TYPE_DBUS_SERVER, GSignondDbusServerClass))
38 #define GSIGNOND_IS_DBUS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GSIGNOND_TYPE_DBUS_SERVER))
39 #define GSIGNOND_IS_DBUS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GSIGNOND_TYPE_DBUS_SERVER))
40 #define GSIGNOND_DBUS_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GSIGNOND_TYPE_DBUS_SERVER, GSignondDbusServerClass))
42 typedef struct _GSignondDbusServer GSignondDbusServer;
43 typedef struct _GSignondDbusServerClass GSignondDbusServerClass;
44 typedef struct _GSignondDbusServerPrivate GSignondDbusServerPrivate;
46 struct _GSignondDbusServer
51 GSignondDbusServerPrivate *priv;
54 struct _GSignondDbusServerClass
56 GObjectClass parent_class;
59 GType gsignond_dbus_server_get_type();
62 GSignondDbusServer * gsignond_dbus_server_new_with_address (const gchar *address);
65 gsignond_dbus_server_get_address (GSignondDbusServer *server) G_GNUC_CONST;
68 GSignondDbusServer * gsignond_dbus_server_new ();
70 #endif /* __GSIGNOND_DBUS_SERVER_H_ */