GStreamer 1.0 Core Reference Manual: GstGlobalDeviceMonitor

## GstGlobalDeviceMonitor GstGlobalDeviceMonitor |

## Functions

#define | GST_GLOBAL_DEVICE_MONITOR()
#define | GST_GLOBAL_DEVICE_MONITOR_CAST()
#define | GST_GLOBAL_DEVICE_MONITOR_CLASS()
#define | GST_GLOBAL_DEVICE_MONITOR_GET_CLASS()
#define | GST_IS_GLOBAL_DEVICE_MONITOR()
#define | GST_IS_GLOBAL_DEVICE_MONITOR_CLASS()
#define | GST_TYPE_GLOBAL_DEVICE_MONITOR
GstBus * | gst_global_device_monitor_get_bus ()
GstCaps * | gst_global_device_monitor_get_caps_filter ()
gchar * | gst_global_device_monitor_get_classes_filter ()
GList * | gst_global_device_monitor_get_devices ()
GType | gst_global_device_monitor_get_type ()
GstGlobalDeviceMonitor * | gst_global_device_monitor_new ()
void | gst_global_device_monitor_set_caps_filter ()
void | gst_global_device_monitor_set_classes_filter ()
gboolean | gst_global_device_monitor_start ()
void | gst_global_device_monitor_stop ()

## Types and Values

struct | GstGlobalDeviceMonitor
struct | GstGlobalDeviceMonitorClass

## Object Hierarchy

## Includes

    #include <gst/gst.h>

## Description

## Functions

### GST_GLOBAL_DEVICE_MONITOR()

    #define GST_GLOBAL_DEVICE_MONITOR(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_GLOBAL_DEVICE_MONITOR, GstGlobalDeviceMonitor))

### GST_GLOBAL_DEVICE_MONITOR_CAST()

    #define GST_GLOBAL_DEVICE_MONITOR_CAST(obj)            ((GstGlobalDeviceMonitor *)(obj))

### GST_GLOBAL_DEVICE_MONITOR_CLASS()

    #define GST_GLOBAL_DEVICE_MONITOR_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GLOBAL_DEVICE_MONITOR, GstGlobalDeviceMonitorClass))

### GST_GLOBAL_DEVICE_MONITOR_GET_CLASS()

    #define GST_GLOBAL_DEVICE_MONITOR_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_GLOBAL_DEVICE_MONITOR, GstGlobalDeviceMonitorClass))

### GST_IS_GLOBAL_DEVICE_MONITOR()

    #define GST_IS_GLOBAL_DEVICE_MONITOR(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GLOBAL_DEVICE_MONITOR))

### GST_IS_GLOBAL_DEVICE_MONITOR_CLASS()

    #define GST_IS_GLOBAL_DEVICE_MONITOR_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GLOBAL_DEVICE_MONITOR))

### GST_TYPE_GLOBAL_DEVICE_MONITOR

    #define GST_TYPE_GLOBAL_DEVICE_MONITOR                 (gst_global_device_monitor_get_type())

### gst_global_device_monitor_get_bus ()

    GstBus *
    gst_global_device_monitor_get_bus (GstGlobalDeviceMonitor *monitor);

Gets the GstBus of this GstGlobalDeviceMonitor

#### Parameters

monitor | a GstDeviceMonitor |

#### Returns

a GstBus.

[transfer full]

### gst_global_device_monitor_get_caps_filter ()

    GstCaps *
    gst_global_device_monitor_get_caps_filter
                                   (GstGlobalDeviceMonitor *monitor);

### gst_global_device_monitor_get_classes_filter ()

    gchar *
    gst_global_device_monitor_get_classes_filter
                                   (GstGlobalDeviceMonitor *monitor);

### gst_global_device_monitor_get_devices ()

    GList *
    gst_global_device_monitor_get_devices (GstGlobalDeviceMonitor *monitor);

Gets a list of devices from all of the relevant monitors. This may actually probe the hardware if the global monitor is not currently started.

#### Parameters

monitor | A GstDeviceMonitor |

#### Returns

a GList of GstDevice.

[transfer full][element-type GstDevice]

### gst_global_device_monitor_get_type ()

    GType
    gst_global_device_monitor_get_type (void);

### gst_global_device_monitor_new ()

    GstGlobalDeviceMonitor *
    gst_global_device_monitor_new (void);

### gst_global_device_monitor_set_caps_filter ()

    void
    gst_global_device_monitor_set_caps_filter
                                   (GstGlobalDeviceMonitor *monitor,
                                    GstCaps *caps);

### gst_global_device_monitor_set_classes_filter ()

    void
    gst_global_device_monitor_set_classes_filter
                                   (GstGlobalDeviceMonitor *monitor,
                                    const gchar *classes);

### gst_global_device_monitor_start ()

    gboolean
    gst_global_device_monitor_start (GstGlobalDeviceMonitor *monitor);

Starts monitoring the devices, one this has succeeded, the “added” and “removed” signals will be emitted when the list of devices changes.

#### Parameters

monitor | A GstGlobalDeviceMonitor |

#### Returns

`TRUE` if the device monitoring could be started

### gst_global_device_monitor_stop ()

    void
    gst_global_device_monitor_stop (GstGlobalDeviceMonitor *monitor);

Stops monitoring the devices.

#### Parameters

monitor | A GstDeviceMonitor |

## Types and Values

### struct GstGlobalDeviceMonitor

    struct GstGlobalDeviceMonitor {
      GstObject                parent;
    };

### struct GstGlobalDeviceMonitorClass

    struct GstGlobalDeviceMonitorClass {
      GstObjectClass           parent_class;
    };