extras/physfs_rb/physfs/rb_physfs_file.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 26 Sep 2004 13:17:54 +0000
changeset 654 c0ae01de361d
parent 514 f4e89d934fee
permissions -rw-r--r--
Changed PHYSFS_file to PHYSFS_File to match rest of API's naming convention. This won't break binary compat (function signatures are extern "C" so name mangling doesn't apply), and I've placed a typedef for the old name to support legacy source code.

/*
 * PhysicsFS File abstraction - ruby interface
 * 
 * Author::  Ed Sinjiashvili (slimb@vlinkmail.com)
 * License:: LGPL
 */

#ifndef __RB__PHYSFS__FILE__H__
#define __RB__PHYSFS__FILE__H__

extern VALUE classPhysfsFile;

VALUE physfs_file_new    (PHYSFS_file *file);
VALUE physfs_file_close  (VALUE self);
VALUE physfs_file_read   (VALUE self, VALUE objSize, VALUE objCount);
VALUE physfs_file_write  (VALUE self, VALUE buf, VALUE objSize, VALUE objCount);
VALUE physfs_file_eof    (VALUE self);
VALUE physfs_file_tell   (VALUE self);
VALUE physfs_file_seek   (VALUE self, VALUE pos);
VALUE physfs_file_length (VALUE self);

void init_physfs_file (void);

#endif