mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
WIP
Change object model
This commit is contained in:
parent
d0f95fc323
commit
190f01d88e
38 changed files with 1594 additions and 3562 deletions
|
|
@ -20,39 +20,23 @@
|
|||
#ifndef __PINOS_SPA_V4L2_MONITOR_H__
|
||||
#define __PINOS_SPA_V4L2_MONITOR_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <pinos/server/core.h>
|
||||
|
||||
#include <pinos/server/daemon.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define PINOS_TYPE_SPA_V4L2_MONITOR (pinos_spa_v4l2_monitor_get_type ())
|
||||
#define PINOS_IS_SPA_V4L2_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PINOS_TYPE_SPA_V4L2_MONITOR))
|
||||
#define PINOS_IS_SPA_V4L2_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PINOS_TYPE_SPA_V4L2_MONITOR))
|
||||
#define PINOS_SPA_V4L2_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PINOS_TYPE_SPA_V4L2_MONITOR, PinosSpaV4l2MonitorClass))
|
||||
#define PINOS_SPA_V4L2_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PINOS_TYPE_SPA_V4L2_MONITOR, PinosSpaV4l2Monitor))
|
||||
#define PINOS_SPA_V4L2_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PINOS_TYPE_SPA_V4L2_MONITOR, PinosSpaV4l2MonitorClass))
|
||||
#define PINOS_SPA_V4L2_MONITOR_CAST(obj) ((PinosSpaV4l2Monitor*)(obj))
|
||||
#define PINOS_SPA_V4L2_MONITOR_CLASS_CAST(klass) ((PinosSpaV4l2MonitorClass*)(klass))
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _PinosSpaV4l2Monitor PinosSpaV4l2Monitor;
|
||||
typedef struct _PinosSpaV4l2MonitorClass PinosSpaV4l2MonitorClass;
|
||||
typedef struct _PinosSpaV4l2MonitorPrivate PinosSpaV4l2MonitorPrivate;
|
||||
|
||||
struct _PinosSpaV4l2Monitor {
|
||||
GObject object;
|
||||
|
||||
PinosSpaV4l2MonitorPrivate *priv;
|
||||
SpaMonitor *monitor;
|
||||
};
|
||||
|
||||
struct _PinosSpaV4l2MonitorClass {
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
PinosSpaV4l2Monitor * pinos_spa_v4l2_monitor_new (PinosCore *core);
|
||||
void pinos_spa_v4l2_monitor_destroy (PinosSpaV4l2Monitor *monitor);
|
||||
|
||||
GType pinos_spa_v4l2_monitor_get_type (void);
|
||||
|
||||
GObject * pinos_spa_v4l2_monitor_new (PinosDaemon *daemon);
|
||||
|
||||
G_END_DECLS
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __PINOS_SPA_V4L2_MONITOR_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue