probe-buffer.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "probe-buffer.h"

Go to the source code of this file.

Classes

struct  ProbeBuffer

Functions

static gint probe_buffer_fclose (VFSFile *file)
static void increase_buffer (ProbeBuffer *p, gint64 size)
static gint64 probe_buffer_fread (void *buffer, gint64 size, gint64 count, VFSFile *file)
static gint64 probe_buffer_fwrite (const void *data, gint64 size, gint64 count, VFSFile *file)
static gint probe_buffer_getc (VFSFile *file)
static gint probe_buffer_fseek (VFSFile *file, gint64 offset, gint whence)
static gint probe_buffer_ungetc (gint c, VFSFile *file)
static void probe_buffer_rewind (VFSFile *file)
static gint64 probe_buffer_ftell (VFSFile *file)
static gboolean probe_buffer_feof (VFSFile *file)
static gint probe_buffer_ftruncate (VFSFile *file, gint64 size)
static gint64 probe_buffer_fsize (VFSFile *file)
static gchar * probe_buffer_get_metadata (VFSFile *file, const gchar *field)
VFSFileprobe_buffer_new (const gchar *filename)
void probe_buffer_set_decoder (VFSFile *file, const gchar *decoder)

Variables

static VFSConstructor probe_buffer_table

Function Documentation

static void increase_buffer ( ProbeBuffer p,
gint64  size 
) [static]

Definition at line 45 of file probe-buffer.c.

Referenced by probe_buffer_fread(), and probe_buffer_fseek().

static gint probe_buffer_fclose ( VFSFile file  )  [static]

Definition at line 38 of file probe-buffer.c.

static gboolean probe_buffer_feof ( VFSFile file  )  [static]

Definition at line 136 of file probe-buffer.c.

static gint64 probe_buffer_fread ( void *  buffer,
gint64  size,
gint64  count,
VFSFile file 
) [static]

Definition at line 66 of file probe-buffer.c.

Referenced by probe_buffer_getc().

static gint probe_buffer_fseek ( VFSFile file,
gint64  offset,
gint  whence 
) [static]

Definition at line 92 of file probe-buffer.c.

Referenced by probe_buffer_rewind(), and probe_buffer_ungetc().

static gint64 probe_buffer_fsize ( VFSFile file  )  [static]

Definition at line 148 of file probe-buffer.c.

static gint64 probe_buffer_ftell ( VFSFile file  )  [static]

Definition at line 131 of file probe-buffer.c.

static gint probe_buffer_ftruncate ( VFSFile file,
gint64  size 
) [static]

Definition at line 142 of file probe-buffer.c.

static gint64 probe_buffer_fwrite ( const void *  data,
gint64  size,
gint64  count,
VFSFile file 
) [static]

Definition at line 79 of file probe-buffer.c.

static gchar* probe_buffer_get_metadata ( VFSFile file,
const gchar *  field 
) [static]

Definition at line 153 of file probe-buffer.c.

static gint probe_buffer_getc ( VFSFile file  )  [static]

Definition at line 86 of file probe-buffer.c.

VFSFile* probe_buffer_new ( const gchar *  filename  ) 

Definition at line 176 of file probe-buffer.c.

Referenced by check_opened().

static void probe_buffer_rewind ( VFSFile file  )  [static]

Definition at line 126 of file probe-buffer.c.

void probe_buffer_set_decoder ( VFSFile file,
const gchar *  decoder 
)

Definition at line 201 of file probe-buffer.c.

Referenced by probe_func().

static gint probe_buffer_ungetc ( gint  c,
VFSFile file 
) [static]

Definition at line 121 of file probe-buffer.c.


Variable Documentation

Initial value:
{
        .uri_id = NULL,
        .vfs_fopen_impl = NULL,
        .vfs_fclose_impl = probe_buffer_fclose,
        .vfs_fread_impl = probe_buffer_fread,
        .vfs_fwrite_impl = probe_buffer_fwrite,
        .vfs_getc_impl = probe_buffer_getc,
        .vfs_ungetc_impl = probe_buffer_ungetc,
        .vfs_fseek_impl = probe_buffer_fseek,
        .vfs_rewind_impl = probe_buffer_rewind,
        .vfs_ftell_impl = probe_buffer_ftell,
        .vfs_feof_impl = probe_buffer_feof,
        .vfs_ftruncate_impl = probe_buffer_ftruncate,
        .vfs_fsize_impl = probe_buffer_fsize,
        .vfs_get_metadata_impl = probe_buffer_get_metadata,
}

Definition at line 158 of file probe-buffer.c.


Generated on 8 Jun 2011 for Audacious by  doxygen 1.6.1