mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
Linux DVB output for STBs based on Broadcom - replace active pooling by select (ready to write)
Signed-off-by: max_10 <max_10@gmx.de>
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
#define PLAYBACK_H_
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef void( * PlaybackDieNowCallback )();
|
||||
bool PlaybackDieNowRegisterCallback(PlaybackDieNowCallback callback);
|
||||
|
||||
typedef enum {
|
||||
PLAYBACK_OPEN,
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include <sys/uio.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include "common.h"
|
||||
|
||||
typedef enum { eNone, eAudio, eVideo} eWriterType_t;
|
||||
|
||||
@@ -87,5 +88,6 @@ Writer_t *getDefaultVideoWriter();
|
||||
Writer_t *getDefaultAudioWriter();
|
||||
ssize_t write_with_retry(int fd, const void *buf, size_t size);
|
||||
ssize_t writev_with_retry(int fd, const struct iovec *iov, size_t ic);
|
||||
ssize_t WriteWithRetry(Context_t *context, int pipefd, int fd, const void *buf, size_t size);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user