|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
* Copyright (C) 2013 Olivier Crete <olivier.crete@collabora.com>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* gstdevicemonitor.c: Device monitor
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit Service |
963350 |
* Boston, MA 02111-1307, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifndef __GST_DEVICE_MONITOR_H__
|
|
Packit Service |
963350 |
#define __GST_DEVICE_MONITOR_H__
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <gst/gstobject.h>
|
|
Packit Service |
963350 |
#include <gst/gstdevice.h>
|
|
Packit Service |
963350 |
#include <gst/gstdeviceprovider.h>
|
|
Packit Service |
963350 |
#include <gst/gstdeviceproviderfactory.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_BEGIN_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
typedef struct _GstDeviceMonitor GstDeviceMonitor;
|
|
Packit Service |
963350 |
typedef struct _GstDeviceMonitorPrivate GstDeviceMonitorPrivate;
|
|
Packit Service |
963350 |
typedef struct _GstDeviceMonitorClass GstDeviceMonitorClass;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define GST_TYPE_DEVICE_MONITOR (gst_device_monitor_get_type())
|
|
Packit Service |
963350 |
#define GST_IS_DEVICE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_DEVICE_MONITOR))
|
|
Packit Service |
963350 |
#define GST_IS_DEVICE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_DEVICE_MONITOR))
|
|
Packit Service |
963350 |
#define GST_DEVICE_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_DEVICE_MONITOR, GstDeviceMonitorClass))
|
|
Packit Service |
963350 |
#define GST_DEVICE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DEVICE_MONITOR, GstDeviceMonitor))
|
|
Packit Service |
963350 |
#define GST_DEVICE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_DEVICE_MONITOR, GstDeviceMonitorClass))
|
|
Packit Service |
963350 |
#define GST_DEVICE_MONITOR_CAST(obj) ((GstDeviceMonitor *)(obj))
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstDeviceMonitor:
|
|
Packit Service |
963350 |
* @parent: the parent #GstObject structure
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Opaque device monitor object structure.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Since: 1.4
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
struct _GstDeviceMonitor {
|
|
Packit Service |
963350 |
GstObject parent;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*< private >*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GstDeviceMonitorPrivate *priv;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gpointer _gst_reserved[GST_PADDING];
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstDeviceMonitorClass:
|
|
Packit Service |
963350 |
* @parent_class: the parent #GstObjectClass structure
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Opaque device monitor class structure.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Since: 1.4
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
struct _GstDeviceMonitorClass {
|
|
Packit Service |
963350 |
GstObjectClass parent_class;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*< private >*/
|
|
Packit Service |
963350 |
gpointer _gst_reserved[GST_PADDING];
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
GType gst_device_monitor_get_type (void);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
GstDeviceMonitor * gst_device_monitor_new (void);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
GstBus * gst_device_monitor_get_bus (GstDeviceMonitor * monitor);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
GList * gst_device_monitor_get_devices (GstDeviceMonitor * monitor);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
gboolean gst_device_monitor_start (GstDeviceMonitor * monitor);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
void gst_device_monitor_stop (GstDeviceMonitor * monitor);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
guint gst_device_monitor_add_filter (GstDeviceMonitor * monitor,
|
|
Packit Service |
963350 |
const gchar * classes,
|
|
Packit Service |
963350 |
GstCaps * caps);
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
gboolean gst_device_monitor_remove_filter (GstDeviceMonitor * monitor,
|
|
Packit Service |
963350 |
guint filter_id);
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
gchar ** gst_device_monitor_get_providers (GstDeviceMonitor * monitor);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
void gst_device_monitor_set_show_all_devices (GstDeviceMonitor * monitor, gboolean show_all);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
gboolean gst_device_monitor_get_show_all_devices (GstDeviceMonitor * monitor);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit Service |
963350 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceMonitor, gst_object_unref)
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_END_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#endif /* __GST_DEVICE_MONITOR_H__ */
|