From e8eeaba4104c7dd66a10c0bdc39559a5c6634db0 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Mar 2022 00:22:52 -0400 Subject: Add xas_object callback to set object flags --- src/object.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/object.c b/src/object.c index 4526bc5..70271c1 100644 --- a/src/object.c +++ b/src/object.c @@ -57,6 +57,16 @@ int xas_object_set_freq(xas_object *object, size_t freq) { return object->set_freq(object, freq); } +int xas_object_set_flags(xas_object *object, int flags) { + if (object->set_flags == NULL) { + errno = ENOSYS; + + return -1; + } + + return object->set_flags(object, flags); +} + xas_audio_stream *xas_object_stream_new(xas_object *object) { if (object->stream_new == NULL) { errno = ENOSYS; -- cgit v1.2.3