Skip to content

Commit

Permalink
A tiny reformating of streams
Browse files Browse the repository at this point in the history
  • Loading branch information
mchalupa committed Apr 24, 2024
1 parent a73178b commit 4cc0d9d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions include/vamos-buffers/streams/stream-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */
4 changes: 2 additions & 2 deletions src/core/stream.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "vamos-buffers/core/stream.h"
#include "vamos-buffers/core/event.h"

#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

#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"
Expand Down
5 changes: 3 additions & 2 deletions src/streams/stream-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4cc0d9d

Please sign in to comment.