/*
 * This file is generated by gdbus-codegen, do not modify it.
 *
 * The license of this code is the same as for the D-Bus interface description
 * it was derived from. Note that it links to GLib, so must comply with the
 * LGPL linking clauses.
 */

#ifndef __CALLAUDIO_DBUS_H__
#define __CALLAUDIO_DBUS_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.mobian_project.CallAudio */

#define CALL_AUDIO_DBUS_TYPE_CALL_AUDIO (call_audio_dbus_call_audio_get_type ())
#define CALL_AUDIO_DBUS_CALL_AUDIO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO, CallAudioDbusCallAudio))
#define CALL_AUDIO_DBUS_IS_CALL_AUDIO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO))
#define CALL_AUDIO_DBUS_CALL_AUDIO_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO, CallAudioDbusCallAudioIface))

struct _CallAudioDbusCallAudio;
typedef struct _CallAudioDbusCallAudio CallAudioDbusCallAudio;
typedef struct _CallAudioDbusCallAudioIface CallAudioDbusCallAudioIface;

struct _CallAudioDbusCallAudioIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_enable_speaker) (
    CallAudioDbusCallAudio *object,
    GDBusMethodInvocation *invocation,
    gboolean arg_enable);

  gboolean (*handle_mute_mic) (
    CallAudioDbusCallAudio *object,
    GDBusMethodInvocation *invocation,
    gboolean arg_mute);

  gboolean (*handle_select_mode) (
    CallAudioDbusCallAudio *object,
    GDBusMethodInvocation *invocation,
    guint arg_mode);

  guint  (*get_audio_mode) (CallAudioDbusCallAudio *object);

  guint  (*get_mic_state) (CallAudioDbusCallAudio *object);

  guint  (*get_speaker_state) (CallAudioDbusCallAudio *object);

};

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CallAudioDbusCallAudio, g_object_unref)
#endif

GType call_audio_dbus_call_audio_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *call_audio_dbus_call_audio_interface_info (void);
guint call_audio_dbus_call_audio_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void call_audio_dbus_call_audio_complete_select_mode (
    CallAudioDbusCallAudio *object,
    GDBusMethodInvocation *invocation,
    gboolean success);

void call_audio_dbus_call_audio_complete_enable_speaker (
    CallAudioDbusCallAudio *object,
    GDBusMethodInvocation *invocation,
    gboolean success);

void call_audio_dbus_call_audio_complete_mute_mic (
    CallAudioDbusCallAudio *object,
    GDBusMethodInvocation *invocation,
    gboolean success);



/* D-Bus method calls: */
void call_audio_dbus_call_audio_call_select_mode (
    CallAudioDbusCallAudio *proxy,
    guint arg_mode,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean call_audio_dbus_call_audio_call_select_mode_finish (
    CallAudioDbusCallAudio *proxy,
    gboolean *out_success,
    GAsyncResult *res,
    GError **error);

gboolean call_audio_dbus_call_audio_call_select_mode_sync (
    CallAudioDbusCallAudio *proxy,
    guint arg_mode,
    gboolean *out_success,
    GCancellable *cancellable,
    GError **error);

void call_audio_dbus_call_audio_call_enable_speaker (
    CallAudioDbusCallAudio *proxy,
    gboolean arg_enable,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean call_audio_dbus_call_audio_call_enable_speaker_finish (
    CallAudioDbusCallAudio *proxy,
    gboolean *out_success,
    GAsyncResult *res,
    GError **error);

gboolean call_audio_dbus_call_audio_call_enable_speaker_sync (
    CallAudioDbusCallAudio *proxy,
    gboolean arg_enable,
    gboolean *out_success,
    GCancellable *cancellable,
    GError **error);

void call_audio_dbus_call_audio_call_mute_mic (
    CallAudioDbusCallAudio *proxy,
    gboolean arg_mute,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean call_audio_dbus_call_audio_call_mute_mic_finish (
    CallAudioDbusCallAudio *proxy,
    gboolean *out_success,
    GAsyncResult *res,
    GError **error);

gboolean call_audio_dbus_call_audio_call_mute_mic_sync (
    CallAudioDbusCallAudio *proxy,
    gboolean arg_mute,
    gboolean *out_success,
    GCancellable *cancellable,
    GError **error);



/* D-Bus property accessors: */
guint call_audio_dbus_call_audio_get_audio_mode (CallAudioDbusCallAudio *object);
void call_audio_dbus_call_audio_set_audio_mode (CallAudioDbusCallAudio *object, guint value);

guint call_audio_dbus_call_audio_get_speaker_state (CallAudioDbusCallAudio *object);
void call_audio_dbus_call_audio_set_speaker_state (CallAudioDbusCallAudio *object, guint value);

guint call_audio_dbus_call_audio_get_mic_state (CallAudioDbusCallAudio *object);
void call_audio_dbus_call_audio_set_mic_state (CallAudioDbusCallAudio *object, guint value);


/* ---- */

#define CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_PROXY (call_audio_dbus_call_audio_proxy_get_type ())
#define CALL_AUDIO_DBUS_CALL_AUDIO_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_PROXY, CallAudioDbusCallAudioProxy))
#define CALL_AUDIO_DBUS_CALL_AUDIO_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_PROXY, CallAudioDbusCallAudioProxyClass))
#define CALL_AUDIO_DBUS_CALL_AUDIO_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_PROXY, CallAudioDbusCallAudioProxyClass))
#define CALL_AUDIO_DBUS_IS_CALL_AUDIO_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_PROXY))
#define CALL_AUDIO_DBUS_IS_CALL_AUDIO_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_PROXY))

typedef struct _CallAudioDbusCallAudioProxy CallAudioDbusCallAudioProxy;
typedef struct _CallAudioDbusCallAudioProxyClass CallAudioDbusCallAudioProxyClass;
typedef struct _CallAudioDbusCallAudioProxyPrivate CallAudioDbusCallAudioProxyPrivate;

struct _CallAudioDbusCallAudioProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  CallAudioDbusCallAudioProxyPrivate *priv;
};

struct _CallAudioDbusCallAudioProxyClass
{
  GDBusProxyClass parent_class;
};

GType call_audio_dbus_call_audio_proxy_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CallAudioDbusCallAudioProxy, g_object_unref)
#endif

void call_audio_dbus_call_audio_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CallAudioDbusCallAudio *call_audio_dbus_call_audio_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
CallAudioDbusCallAudio *call_audio_dbus_call_audio_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void call_audio_dbus_call_audio_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CallAudioDbusCallAudio *call_audio_dbus_call_audio_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
CallAudioDbusCallAudio *call_audio_dbus_call_audio_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_SKELETON (call_audio_dbus_call_audio_skeleton_get_type ())
#define CALL_AUDIO_DBUS_CALL_AUDIO_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_SKELETON, CallAudioDbusCallAudioSkeleton))
#define CALL_AUDIO_DBUS_CALL_AUDIO_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_SKELETON, CallAudioDbusCallAudioSkeletonClass))
#define CALL_AUDIO_DBUS_CALL_AUDIO_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_SKELETON, CallAudioDbusCallAudioSkeletonClass))
#define CALL_AUDIO_DBUS_IS_CALL_AUDIO_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_SKELETON))
#define CALL_AUDIO_DBUS_IS_CALL_AUDIO_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CALL_AUDIO_DBUS_TYPE_CALL_AUDIO_SKELETON))

typedef struct _CallAudioDbusCallAudioSkeleton CallAudioDbusCallAudioSkeleton;
typedef struct _CallAudioDbusCallAudioSkeletonClass CallAudioDbusCallAudioSkeletonClass;
typedef struct _CallAudioDbusCallAudioSkeletonPrivate CallAudioDbusCallAudioSkeletonPrivate;

struct _CallAudioDbusCallAudioSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  CallAudioDbusCallAudioSkeletonPrivate *priv;
};

struct _CallAudioDbusCallAudioSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType call_audio_dbus_call_audio_skeleton_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CallAudioDbusCallAudioSkeleton, g_object_unref)
#endif

CallAudioDbusCallAudio *call_audio_dbus_call_audio_skeleton_new (void);


G_END_DECLS

#endif /* __CALLAUDIO_DBUS_H__ */
