1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * Copyright (C) 2013 Intel Corporation.
6 * Contact: Amarnath Valluri <amarnath.valluri@linux.intel.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 #ifndef _MSGPORT_SERVICE_H
25 #define _MSGPORT_SERVICE_H
27 #include <glib-object.h>
31 #define MSGPORT_TYPE_SERVICE (msgport_service_get_type())
32 #define MSGPORT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MSGPORT_TYPE_SERVICE, MsgPortService))
33 #define MSGPORT_SERVICE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST((kls), MSGPORT_TYPE_SERVICE, MsgPortServiceClass))
34 #define MSGPORT_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MSGPORT_TYPE_SERVICE))
35 #define MSGPORT_IS_SERVICE_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), MSGPORT_TYPE_SERVICE))
37 typedef struct _MsgPortService MsgPortService;
38 typedef struct _MsgPortServiceClass MsgPortServiceClass;
39 typedef struct _MsgPortServicePrivate MsgPortServicePrivate;
41 struct _MsgPortService
46 MsgPortServicePrivate *priv;
49 struct _MsgPortServiceClass
51 GObjectClass parenet_class;
54 GType msgport_service_get_type (void);
57 msgport_service_new (const gchar *app_id,
62 msgport_service_get_app_id (MsgPortService *service);
65 msgport_service_get_port_name (MsgPortService *service);
68 msgport_service_get_is_trusted (MsgPortService *service);
71 msgport_service_to_variant (MsgPortService *service);
75 #endif /* _MSGPORT_SERVICE_H */