Rework transport protocol

Use a more simple tranport protocol for the realtime data. Use a piece
of shared memory and a socket where we use a 1byte read/write to trigger
remote actions. Also use a ringbuffer for events.
This commit is contained in:
Wim Taymans 2016-11-07 10:24:13 +01:00
parent 7e46f9e3ad
commit b774b99db5
22 changed files with 797 additions and 364 deletions

View file

@ -5,6 +5,7 @@ pinos_headers = [
'introspect.h',
'log.h',
'map.h',
'mem.h',
'pinos.h',
'properties.h',
'ringbuffer.h',
@ -12,6 +13,7 @@ pinos_headers = [
'stream.h',
'subscribe.h',
'thread-mainloop.h',
'transport.h',
]
pinos_sources = [
@ -21,6 +23,7 @@ pinos_sources = [
'introspect.c',
'log.c',
'mapper.c',
'mem.c',
'properties.c',
'serialize.c',
'stream.c',
@ -29,6 +32,7 @@ pinos_sources = [
'rtkit.c',
'subscribe.c',
'thread-mainloop.c',
'transport.c',
gdbus_target,
]