Blame telepathy-account-widgets/tp-account-widgets/tpaw-camera-monitor.h

Packit 79f644
/*
Packit 79f644
 * Copyright (C) 2011 Collabora Ltd.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Lesser General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2.1 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Lesser General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Lesser General Public
Packit 79f644
 * License along with this library; if not, write to the Free Software
Packit 79f644
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 79f644
 *
Packit 79f644
 * Authors: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Packit 79f644
 */
Packit 79f644
Packit 79f644
#ifndef __TPAW_CAMERA_MONITOR_H__
Packit 79f644
#define __TPAW_CAMERA_MONITOR_H__
Packit 79f644
Packit 79f644
#include <glib-object.h>
Packit 79f644
Packit 79f644
G_BEGIN_DECLS
Packit 79f644
#define TPAW_TYPE_CAMERA_MONITOR         (tpaw_camera_monitor_get_type ())
Packit 79f644
#define TPAW_CAMERA_MONITOR(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), TPAW_TYPE_CAMERA_MONITOR, TpawCameraMonitor))
Packit 79f644
#define TPAW_CAMERA_MONITOR_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), TPAW_TYPE_CAMERA_MONITOR, TpawCameraMonitorClass))
Packit 79f644
#define TPAW_IS_CAMERA_MONITOR(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), TPAW_TYPE_CAMERA_MONITOR))
Packit 79f644
#define TPAW_IS_CAMERA_MONITOR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), TPAW_TYPE_CAMERA_MONITOR))
Packit 79f644
#define TPAW_CAMERA_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TPAW_TYPE_CAMERA_MONITOR, TpawCameraMonitorClass))
Packit 79f644
Packit 79f644
typedef struct _TpawCameraMonitor TpawCameraMonitor;
Packit 79f644
typedef struct _TpawCameraMonitorClass TpawCameraMonitorClass;
Packit 79f644
typedef struct _TpawCameraMonitorPrivate TpawCameraMonitorPrivate;
Packit 79f644
Packit 79f644
struct _TpawCameraMonitor
Packit 79f644
{
Packit 79f644
  GObject parent;
Packit 79f644
  TpawCameraMonitorPrivate *priv;
Packit 79f644
};
Packit 79f644
Packit 79f644
struct _TpawCameraMonitorClass
Packit 79f644
{
Packit 79f644
  GObjectClass parent_class;
Packit 79f644
};
Packit 79f644
Packit 79f644
typedef struct
Packit 79f644
{
Packit 79f644
  gchar *id;
Packit 79f644
  gchar *device;
Packit 79f644
  gchar *name;
Packit 79f644
} TpawCamera;
Packit 79f644
Packit 79f644
#define TPAW_TYPE_CAMERA (tpaw_camera_get_type ())
Packit 79f644
GType tpaw_camera_get_type (void) G_GNUC_CONST;
Packit 79f644
Packit 79f644
GType tpaw_camera_monitor_get_type (void) G_GNUC_CONST;
Packit 79f644
Packit 79f644
TpawCameraMonitor *tpaw_camera_monitor_dup_singleton (void);
Packit 79f644
TpawCameraMonitor *tpaw_camera_monitor_new (void);
Packit 79f644
Packit 79f644
gboolean tpaw_camera_monitor_get_available (TpawCameraMonitor *self);
Packit 79f644
Packit 79f644
const GList * tpaw_camera_monitor_get_cameras (TpawCameraMonitor *self);
Packit 79f644
Packit 79f644
G_END_DECLS
Packit 79f644
#endif /* __TPAW_CAMERA_MONITOR_H__ */