#include <ipod/ipod_io.h>
Go to the source code of this file.
Functions | |
| int | ipod_io_file_read (void *data, size_t maxDataLen, size_t *dataRead, void *userData) |
| Read data from this device. | |
| int | ipod_io_file_write (void *data, size_t dataLen, size_t *dataWritten, void *userData) |
| Write data to this device. | |
| int | ipod_io_file_tell (size_t *offset, void *userData) |
| The current location of the device mark. | |
| int | ipod_io_file_seek (size_t offset, void *userData) |
| Seeks the device to the given location. | |
| int | ipod_io_file_length (size_t *offset, void *userData) |
| The total amount of data on the device. | |
| ipod_io | ipod_io_file_new (FILE *file) |
| Create a new device for the given FILE object. | |
| void | ipod_io_file_free (ipod_io io) |
| Close the file, free the device. | |
| void ipod_io_file_free | ( | ipod_io | io | ) |
Close the file, free the device.
| io | the ipod_io device to free |
| int ipod_io_file_length | ( | size_t * | offset, | |
| void * | userData | |||
| ) |
The total amount of data on the device.
| offset | a pointer to a loctio nin which to store the length of the data stream | |
| userData | an opaque structure containing information about this device |
| ipod_io ipod_io_file_new | ( | FILE * | file | ) |
Create a new device for the given FILE object.
| file | a POSIX file object |
| int ipod_io_file_read | ( | void * | data, | |
| size_t | maxDataLen, | |||
| size_t * | dataRead, | |||
| void * | userData | |||
| ) |
Read data from this device.
| data | pointer to buffer in which to store the data that has been read | |
| maxDataLen | the maximum amount of data to read | |
| dataRead | a pointer in which to store the actual amount of data read | |
| userData | an opaque structure containing information about this device |
| int ipod_io_file_seek | ( | size_t | offset, | |
| void * | userData | |||
| ) |
Seeks the device to the given location.
| offset | the offset into the device to which to seek | |
| userData | an opaque structure containing information about this device |
| int ipod_io_file_tell | ( | size_t * | offset, | |
| void * | userData | |||
| ) |
The current location of the device mark.
| offset | a pointer to a location in which to write the mark | |
| userData | an opaque structure containing information about this device |
| int ipod_io_file_write | ( | void * | data, | |
| size_t | dataLen, | |||
| size_t * | dataWritten, | |||
| void * | userData | |||
| ) |
Write data to this device.
| data | pointer to buffer from which to read the data to be written | |
| dataLen | the amount of data to write | |
| dataWritten | a pointer in which to store the actual amount of data written | |
| userData | an opaque structure containing information about this device |
1.5.3