xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions | Variables
input_nfs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <nfsc/libnfs.h>
#include <nfsc/libnfs-raw-mount.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/input_plugin.h>
#include "input_helper.h"

Data Structures

struct  nfs_input_plugin_t
 
struct  nfs_input_class_t
 

Macros

#define LOG_MODULE   "input_nfs"
 
#define LOG_VERBOSE
 
#define PLUGIN(ptr)   xine_container_of(ptr, nfs_input_plugin_t, input_plugin)
 
#define CLASS(ptr)   xine_container_of(ptr, nfs_input_class_t, input_class)
 

Functions

static int _parse_url (nfs_input_plugin_t *this, int full)
 
static int _mount (nfs_input_plugin_t *this)
 
static off_t _read (input_plugin_t *this_gen, void *buf_gen, off_t len)
 
static off_t _get_length (input_plugin_t *this_gen)
 
static off_t _get_current_pos (input_plugin_t *this_gen)
 
static off_t _seek (input_plugin_t *this_gen, off_t offset, int origin)
 
static const char * _get_mrl (input_plugin_t *this_gen)
 
static void _dispose (input_plugin_t *this_gen)
 
static int _open (input_plugin_t *this_gen)
 
static input_plugin_t_get_instance (input_class_t *cls_gen, xine_stream_t *stream, const char *mrl)
 
static xine_mrl_t ** _get_servers (xine_t *xine, int *nFiles)
 
static xine_mrl_t ** _get_exports (xine_t *xine, const char *server, int *nFiles)
 
static int _is_export (const char *server, const char *path)
 
static xine_mrl_t ** _get_files (nfs_input_plugin_t *this, int *nFiles)
 
static xine_mrl_t ** _get_dir (input_class_t *this_gen, const char *filename, int *nFiles)
 
static void _dispose_class (input_class_t *this_gen)
 
static void * nfs_init_class (xine_t *xine, const void *data)
 

Variables

static const input_info_t input_info_nfs
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ CLASS

#define CLASS ( ptr)    xine_container_of(ptr, nfs_input_class_t, input_class)

Referenced by _dispose_class(), and _get_dir().

◆ LOG_MODULE

#define LOG_MODULE   "input_nfs"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ PLUGIN

#define PLUGIN ( ptr)    xine_container_of(ptr, nfs_input_plugin_t, input_plugin)

Function Documentation

◆ _dispose()

static void _dispose ( input_plugin_t * this_gen)
static

References _x_freep(), and PLUGIN.

Referenced by _get_instance().

◆ _dispose_class()

static void _dispose_class ( input_class_t * this_gen)
static

References _x_input_free_mrls(), and CLASS.

Referenced by nfs_init_class().

◆ _get_current_pos()

static off_t _get_current_pos ( input_plugin_t * this_gen)
static

References PLUGIN.

Referenced by _get_instance().

◆ _get_dir()

static xine_mrl_t ** _get_dir ( input_class_t * this_gen,
const char * filename,
int * nFiles )
static

◆ _get_exports()

static xine_mrl_t ** _get_exports ( xine_t * xine,
const char * server,
int * nFiles )
static

◆ _get_files()

static xine_mrl_t ** _get_files ( nfs_input_plugin_t * this,
int * nFiles )
static

◆ _get_instance()

static input_plugin_t * _get_instance ( input_class_t * cls_gen,
xine_stream_t * stream,
const char * mrl )
static

◆ _get_length()

static off_t _get_length ( input_plugin_t * this_gen)
static

References LOG_MODULE, PLUGIN, XINE_VERBOSITY_LOG, and xprintf.

Referenced by _get_instance().

◆ _get_mrl()

static const char * _get_mrl ( input_plugin_t * this_gen)
static

References PLUGIN.

Referenced by _get_instance().

◆ _get_servers()

static xine_mrl_t ** _get_servers ( xine_t * xine,
int * nFiles )
static

◆ _is_export()

static int _is_export ( const char * server,
const char * path )
static

Referenced by _get_files().

◆ _mount()

static int _mount ( nfs_input_plugin_t * this)
static

References _parse_url(), LOG_MODULE, XINE_VERBOSITY_LOG, and xprintf.

Referenced by _get_files(), and _open().

◆ _open()

static int _open ( input_plugin_t * this_gen)
static

◆ _parse_url()

static int _parse_url ( nfs_input_plugin_t * this,
int full )
static

References LOG_MODULE, XINE_VERBOSITY_LOG, and xprintf.

Referenced by _get_dir(), and _mount().

◆ _read()

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

◆ _seek()

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

References LOG_MODULE, PLUGIN, XINE_VERBOSITY_LOG, and xprintf.

Referenced by _get_instance().

◆ nfs_init_class()

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

Variable Documentation

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static void * nfs_init_class(xine_t *xine, const void *data)
Definition input_nfs.c:560
static const input_info_t input_info_nfs
Definition input_nfs.c:589
#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

◆ input_info_nfs

const input_info_t input_info_nfs
static
Initial value:
= {
.priority = 10,
}