mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-13 16:33:42 +02:00
our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
59
src/driver/stream2file.h
Normal file
59
src/driver/stream2file.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* $Id: stream2file.h,v 1.10 2005/01/12 20:40:22 chakazulu Exp $
|
||||
*
|
||||
* (C) 2004 by thegoodguy <thegoodguy@berlios.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __stream2file_h__
|
||||
#define __stream2file_h__
|
||||
|
||||
enum stream2file_error_msg_t
|
||||
{
|
||||
STREAM2FILE_OK = 0,
|
||||
STREAM2FILE_BUSY = -1,
|
||||
STREAM2FILE_INVALID_DIRECTORY = -2,
|
||||
STREAM2FILE_INVALID_PID = -3,
|
||||
STREAM2FILE_PES_FILTER_FAILURE = -4,
|
||||
STREAM2FILE_DVR_OPEN_FAILURE = -5,
|
||||
STREAM2FILE_RECORDING_THREADS_FAILED = -6,
|
||||
};
|
||||
|
||||
enum stream2file_status_t
|
||||
{
|
||||
STREAM2FILE_STATUS_RUNNING = 0,
|
||||
STREAM2FILE_STATUS_IDLE = 1,
|
||||
STREAM2FILE_STATUS_BUFFER_OVERFLOW = -1,
|
||||
STREAM2FILE_STATUS_WRITE_OPEN_FAILURE = -2,
|
||||
STREAM2FILE_STATUS_WRITE_FAILURE = -3,
|
||||
STREAM2FILE_STATUS_READ_FAILURE = -4
|
||||
};
|
||||
|
||||
struct stream2file_status2_t
|
||||
{
|
||||
stream2file_status_t status;
|
||||
char dir[100];
|
||||
};
|
||||
|
||||
stream2file_error_msg_t start_recording(const char * const filename,
|
||||
const char * const info,
|
||||
const unsigned short vpid,
|
||||
const unsigned short * const apids,
|
||||
const unsigned int numpids);
|
||||
stream2file_error_msg_t stop_recording(const char * const info);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user