mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
moved from libemile
This commit is contained in:
parent
896ac19f91
commit
906d4f2568
32
libcontainer/libcontainer.h
Normal file
32
libcontainer/libcontainer.h
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <libstream.h>
|
||||
|
||||
struct emile_block {
|
||||
u_int32_t offset; /* offset of first block */
|
||||
u_int16_t count; /* number of blocks */
|
||||
} __attribute__((packed));
|
||||
|
||||
struct emile_container {
|
||||
u_int16_t unit_id;
|
||||
u_int16_t block_size;
|
||||
u_int32_t max_blocks;
|
||||
struct emile_block blocks[0];
|
||||
} __attribute__((packed));
|
||||
|
||||
typedef struct {
|
||||
unsigned long size;
|
||||
unsigned long offset;
|
||||
device_io_t device;
|
||||
struct emile_container* container;
|
||||
unsigned long last_current;
|
||||
unsigned long last_index;
|
||||
unsigned long current_block;
|
||||
char *buffer[0];
|
||||
} container_FILE;
|
Loading…
Reference in New Issue
Block a user