Files
glib/gio/gkdbus.h

119 lines
6.4 KiB
C
Raw Normal View History

/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2013 Samsung Electronics
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* Author: Michal Eljasiewicz <m.eljasiewic@samsung.com>
* Author: Lukasz Skalski <l.skalski@samsung.com>
*/
#ifndef __G_KDBUS_H__
#define __G_KDBUS_H__
#if !defined (GIO_COMPILATION)
#error "gkdbus.h is a private header file."
#endif
#include <gio/giotypes.h>
#include "gdbusprivate.h"
G_BEGIN_DECLS
#define G_TYPE_KDBUS (_g_kdbus_get_type ())
#define G_KDBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_KDBUS, GKdbus))
#define G_KDBUS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_KDBUS, GKdbusClass))
#define G_KDBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_KDBUS, GKdbusClass))
#define G_IS_KDBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_KDBUS))
#define G_IS_KDBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_KDBUS))
typedef struct _GKdbus GKdbus;
typedef struct _GKdbusClass GKdbusClass;
typedef struct _GKdbusPrivate GKdbusPrivate;
struct _GKdbusClass
{
GObjectClass parent_class;
};
struct _GKdbus
{
GObject parent_instance;
GKdbusPrivate *priv;
};
GType _g_kdbus_get_type (void) G_GNUC_CONST;
gboolean _g_kdbus_open (GKdbus *kdbus,
const gchar *address,
GError **error);
gboolean _g_kdbus_close (GKdbus *kdbus,
GError **error);
gboolean _g_kdbus_is_closed (GKdbus *kdbus);
GSource * _g_kdbus_create_source (GKdbus *kdbus,
GIOCondition condition,
GCancellable *cancellable);
GVariant * _g_kdbus_Hello (GIOStream *stream,
GError **error);
GVariant * _g_kdbus_GetBusId (GDBusConnection *connection,
GError **error);
GVariant * _g_kdbus_RequestName (GDBusConnection *connection,
const gchar *name,
GBusNameOwnerFlags flags,
GError **error);
GVariant * _g_kdbus_ReleaseName (GDBusConnection *connection,
const gchar *name,
GError **error);
GVariant * _g_kdbus_GetListNames (GDBusConnection *connection,
guint flags,
GError **error);
GVariant * _g_kdbus_GetListQueuedOwners (GDBusConnection *connection,
const gchar *name,
GError **error);
GVariant * _g_kdbus_NameHasOwner (GDBusConnection *connection,
const gchar *name,
GError **error);
GVariant * _g_kdbus_GetNameOwner (GDBusConnection *connection,
const gchar *name,
GError **error);
GVariant * _g_kdbus_GetConnectionUnixProcessID (GDBusConnection *connection,
const gchar *name,
GError **error);
GVariant * _g_kdbus_GetConnectionUnixUser (GDBusConnection *connection,
const gchar *name,
GError **error);
gssize _g_kdbus_receive (GKdbus *kdbus,
GCancellable *cancellable,
GError **error);
G_END_DECLS
#endif /* __G_KDBUS_H__ */