From 4cc0d9d1755a81cc570ada04289689cfb6aa4e6b Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Wed, 24 Apr 2024 08:47:37 +0200 Subject: [PATCH] A tiny reformating of streams --- include/vamos-buffers/streams/stream-generic.h | 5 +++-- src/core/stream.c | 4 ++-- src/streams/stream-generic.c | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/vamos-buffers/streams/stream-generic.h b/include/vamos-buffers/streams/stream-generic.h index 0dfb8c37..04514052 100644 --- a/include/vamos-buffers/streams/stream-generic.h +++ b/include/vamos-buffers/streams/stream-generic.h @@ -23,7 +23,8 @@ typedef struct _vms_stream_generic { vms_shm_buffer *shmbuffer; } vms_stream_generic; -vms_stream *vms_create_generic_stream(const char *key, const char *name, - const vms_stream_hole_handling *hole_handling); +vms_stream *vms_create_generic_stream( + const char *key, const char *name, + const vms_stream_hole_handling *hole_handling); #endif /* SHMN_STREAM_GENERIC_H_ */ diff --git a/src/core/stream.c b/src/core/stream.c index 08e40abe..1e7a24b3 100644 --- a/src/core/stream.c +++ b/src/core/stream.c @@ -1,12 +1,12 @@ #include "vamos-buffers/core/stream.h" -#include "vamos-buffers/core/event.h" #include #include -#include #include +#include #include +#include "vamos-buffers/core/event.h" #include "vamos-buffers/core/utils.h" #include "vamos-buffers/core/vector-macro.h" #include "vamos-buffers/shmbuf/buffer.h" diff --git a/src/streams/stream-generic.c b/src/streams/stream-generic.c index ecc716bd..63a9beb9 100644 --- a/src/streams/stream-generic.c +++ b/src/streams/stream-generic.c @@ -22,8 +22,9 @@ static void generic_alter(vms_stream *stream, vms_event *in, vms_event *out) { memcpy(out, in, stream->event_size); } -vms_stream *vms_create_generic_stream(const char *key, const char *name, - const vms_stream_hole_handling *hole_handling) { +vms_stream *vms_create_generic_stream( + const char *key, const char *name, + const vms_stream_hole_handling *hole_handling) { vms_stream_generic *ss = malloc(sizeof *ss); vms_shm_buffer *shmbuffer = vms_shm_buffer_connect(key); assert(shmbuffer && "Getting the shm buffer failed");