xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions | Variables
input_stdin_fifo.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/input_plugin.h>
#include "input_helper.h"

Data Structures

struct  stdin_input_plugin_t
 

Macros

#define LOG_MODULE   "input_stdin_fifo"
 
#define LOG_VERBOSE
 
#define BUFSIZE   1024
 
#define FILE_FLAGS   O_RDONLY
 
#define RING_LD   15
 
#define RING_SIZE   (1 << RING_LD)
 
#define RING_MASK   (RING_SIZE - 1)
 
#define INPUT_STDIN_CATALOG   { PLUGIN_INPUT, 18, "stdin", XINE_VERSION_CODE, NULL, stdin_plugin_init_class }
 

Functions

static off_t stdin_plugin_get_current_pos (input_plugin_t *this_gen)
 
static int stdin_plugin_wait (stdin_input_plugin_t *this)
 
static off_t stdin_plugin_read (input_plugin_t *this_gen, void *buf_gen, off_t len)
 
static off_t stdin_plugin_seek (input_plugin_t *this_gen, off_t offset, int origin)
 
static off_t stdin_plugin_get_length (input_plugin_t *this_gen)
 
static const char * stdin_plugin_get_mrl (input_plugin_t *this_gen)
 
static void stdin_plugin_dispose (input_plugin_t *this_gen)
 
static uint32_t stdin_plugin_get_capabilities (input_plugin_t *this_gen)
 
static int stdin_plugin_get_optional_data (input_plugin_t *this_gen, void *data, int data_type)
 
static int stdin_plugin_open (input_plugin_t *this_gen)
 
static input_plugin_tstdin_class_get_instance (input_class_t *class_gen, xine_stream_t *stream, const char *data)
 
static void * stdin_plugin_init_class (xine_t *xine, const void *data)
 

Variables

const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ BUFSIZE

#define BUFSIZE   1024

◆ FILE_FLAGS

#define FILE_FLAGS   O_RDONLY

Referenced by stdin_plugin_open().

◆ INPUT_STDIN_CATALOG

#define INPUT_STDIN_CATALOG   { PLUGIN_INPUT, 18, "stdin", XINE_VERSION_CODE, NULL, stdin_plugin_init_class }

◆ LOG_MODULE

#define LOG_MODULE   "input_stdin_fifo"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ RING_LD

#define RING_LD   15

◆ RING_MASK

#define RING_MASK   (RING_SIZE - 1)

Referenced by stdin_plugin_read().

◆ RING_SIZE

#define RING_SIZE   (1 << RING_LD)

Function Documentation

◆ stdin_class_get_instance()

static input_plugin_t * stdin_class_get_instance ( input_class_t * class_gen,
xine_stream_t * stream,
const char * data )
static

◆ stdin_plugin_dispose()

static void stdin_plugin_dispose ( input_plugin_t * this_gen)
static

◆ stdin_plugin_get_capabilities()

static uint32_t stdin_plugin_get_capabilities ( input_plugin_t * this_gen)
static

◆ stdin_plugin_get_current_pos()

static off_t stdin_plugin_get_current_pos ( input_plugin_t * this_gen)
static

◆ stdin_plugin_get_length()

static off_t stdin_plugin_get_length ( input_plugin_t * this_gen)
static

◆ stdin_plugin_get_mrl()

static const char * stdin_plugin_get_mrl ( input_plugin_t * this_gen)
static

◆ stdin_plugin_get_optional_data()

static int stdin_plugin_get_optional_data ( input_plugin_t * this_gen,
void * data,
int data_type )
static

◆ stdin_plugin_init_class()

static void * stdin_plugin_init_class ( xine_t * xine,
const void * data )
static

◆ stdin_plugin_open()

static int stdin_plugin_open ( input_plugin_t * this_gen)
static

◆ stdin_plugin_read()

static off_t stdin_plugin_read ( input_plugin_t * this_gen,
void * buf_gen,
off_t len )
static

◆ stdin_plugin_seek()

static off_t stdin_plugin_seek ( input_plugin_t * this_gen,
off_t offset,
int origin )
static

◆ stdin_plugin_wait()

static int stdin_plugin_wait ( stdin_input_plugin_t * this)
static

Variable Documentation

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static void * stdin_plugin_init_class(xine_t *xine, const void *data)
Definition input_stdin_fifo.c:488
#define XINE_VERSION_CODE
Definition xine_internal.h:57
NULL
Definition xine_plugin.c:78
#define PLUGIN_NONE
Definition xine_plugin.h:29
#define PLUGIN_INPUT
Definition xine_plugin.h:30