mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
libspark: rename files to common names
Origin commit data
------------------
Branch: master
Commit: 00fe1f2ed4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-02 (Thu, 02 Feb 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
36
libspark/record_lib.h
Normal file
36
libspark/record_lib.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef __RECORD_TD_H
|
||||
#define __RECORD_TD_H
|
||||
|
||||
#include <pthread.h>
|
||||
#include "dmx_lib.h"
|
||||
|
||||
typedef enum {
|
||||
RECORD_RUNNING,
|
||||
RECORD_STOPPED,
|
||||
RECORD_FAILED_READ, /* failed to read from DMX */
|
||||
RECORD_FAILED_OVERFLOW, /* cannot write fast enough */
|
||||
RECORD_FAILED_FILE, /* cannot write to file */
|
||||
RECORD_FAILED_MEMORY /* out of memory */
|
||||
} record_state_t;
|
||||
|
||||
class cRecord
|
||||
{
|
||||
private:
|
||||
int file_fd;
|
||||
cDemux *dmx;
|
||||
pthread_t record_thread;
|
||||
bool record_thread_running;
|
||||
record_state_t exit_flag;
|
||||
public:
|
||||
cRecord(int num = 0);
|
||||
~cRecord();
|
||||
|
||||
bool Open();
|
||||
bool Start(int fd, unsigned short vpid, unsigned short *apids, int numapids);
|
||||
bool Stop(void);
|
||||
bool AddPid(unsigned short pid);
|
||||
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
||||
|
||||
void RecordThread();
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user