Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
"alsatimer_get_sysname";
"alsatimer_get_devnode";
+
+ "alsatimer_device_id_get_type";
local:
*;
};
--- /dev/null
+// SPDX-License-Identifier: LGPL-3.0-or-later
+#include "device-id.h"
+
+ALSATimerDeviceId *timer_device_id_copy(const ALSATimerDeviceId *self)
+{
+ return g_memdup(self, sizeof(*self));
+}
+
+G_DEFINE_BOXED_TYPE(ALSATimerDeviceId, alsatimer_device_id, timer_device_id_copy, g_free)
--- /dev/null
+// SPDX-License-Identifier: LGPL-3.0-or-later
+#ifndef __ALSA_GOBJECT_ALSATIMER_DEVICE_ID__H__
+#define __ALSA_GOBJECT_ALSATIMER_DEVICE_ID__H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <sound/asound.h>
+
+G_BEGIN_DECLS
+
+#define ALSATIMER_TYPE_DEVICE_ID (alsatimer_device_id_get_type())
+
+typedef struct snd_timer_id ALSATimerDeviceId;
+
+GType alsatimer_device_id_get_type() G_GNUC_CONST;
+
+G_END_DECLS
+
+#endif
sources = files(
'query.c',
+ 'device-id.c',
)
headers = files(
'query.h',
+ 'device-id.h',
)
privates = files(