Peter Johnson
9945459a41
Notify sink enable and disable events.
2016-11-18 12:41:08 -08:00
Peter Johnson
c80c4ae55c
MJPEGServer: Use worker thread model.
...
Also make the worker thread a class for future per-client configuration use.
Depends on wpiutil #153 .
2016-11-18 12:40:31 -08:00
Peter Johnson
f83ff41e47
Rename from cameraserver to cscore.
...
This is primarily to avoid header naming conflicts with wpilib.
2016-11-05 22:11:55 -07:00
Peter Johnson
5f69cb2a5b
SinkImpl: Refactor GetDescription, add GetError, SetEnabled.
2016-10-26 23:31:48 -07:00
Peter Johnson
7f88bd15d1
SinkImpl: Keep enabled count rather than just boolean.
...
This allows e.g. multiple HTTP streams to individually call Enable() and
Disable().
2016-10-13 00:13:18 -07:00
Peter Johnson
052f746c68
Use StringRef and ArrayRef return values when buf passed.
...
For functions where a SmallVector is passed to be used as a stack buffer for
the return value, have the return value be the appropriate StringRef or
ArrayRef type. This allows for both more natural usage and enables directly
returning (rather than copying) a permanently stored or constant string.
2016-09-10 21:30:39 -07:00
Peter Johnson
ba241cd7f9
Source: Keep track of how many sinks are connected and enabled.
2016-09-08 23:52:23 -07:00
Peter Johnson
85be299da1
Start implementation.
2016-09-08 00:07:20 -07:00