Logo Search packages:      
Sourcecode: telepathy-stream-engine version File versions  Download package

channel.h

#ifndef __TP_STREAM_ENGINE_CHANNEL_H__
#define __TP_STREAM_ENGINE_CHANNEL_H__

#include <glib-object.h>

#include "stream.h"

G_BEGIN_DECLS

#define TP_STREAM_ENGINE_TYPE_CHANNEL tp_stream_engine_channel_get_type()

#define TP_STREAM_ENGINE_CHANNEL(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  TP_STREAM_ENGINE_TYPE_CHANNEL, TpStreamEngineChannel))

#define TP_STREAM_ENGINE_CHANNEL_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  TP_STREAM_ENGINE_TYPE_CHANNEL, TpStreamEngineChannelClass))

#define TP_STREAM_ENGINE_IS_CHANNEL(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  TP_STREAM_ENGINE_TYPE_CHANNEL))

#define TP_STREAM_ENGINE_IS_CHANNEL_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  TP_STREAM_ENGINE_TYPE_CHANNEL))

#define TP_STREAM_ENGINE_CHANNEL_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  TP_STREAM_ENGINE_TYPE_CHANNEL, TpStreamEngineChannelClass))

typedef struct _TpStreamEngineChannelPrivate TpStreamEngineChannelPrivate;

typedef struct {
  GObject parent;

  TpStreamEngineChannelPrivate *priv;
} TpStreamEngineChannel;

typedef struct {
  GObjectClass parent_class;
} TpStreamEngineChannelClass;

GType tp_stream_engine_channel_get_type (void);

TpStreamEngineChannel *tp_stream_engine_channel_new (TpDBusDaemon *dbus_daemon,
  const gchar *bus_name,
  const gchar *connection_path,
  const gchar *channel_path,
  guint handle_type,
  guint handle,
  GError **error);

void tp_stream_engine_channel_error (
  TpStreamEngineChannel *self,
  guint error,
  const gchar *message);

TpStreamEngineStream *tp_stream_engine_channel_lookup_stream (
  TpStreamEngineChannel *chan,
  guint stream_id);

typedef void (* TpStreamEngineChannelStreamFunc) (TpStreamEngineChannel *chan,
  guint stream_id, TpStreamEngineStream *stream, gpointer user_data);

void tp_stream_engine_channel_foreach_stream (
  TpStreamEngineChannel *chan,
  TpStreamEngineChannelStreamFunc func,
  gpointer user_data);

G_END_DECLS

#endif /* __TP_STREAM_ENGINE_CHANNEL_H__ */


Generated by  Doxygen 1.6.0   Back to index