Data Structures | Defines | Functions

lib_unif.h File Reference

#include "unif_types.h"
#include <stdio.h>
Include dependency graph for lib_unif.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  unif_header_t
struct  unif_chunk_t
struct  dumper_info_t

Defines

#define UNIF_REVISION   0x00000007
#define CTRL_STDJOY   0x01
#define CTRL_ZAPPER   0x02
#define CTRL_ROB   0x04
#define CTRL_ARKANOID   0x08
#define CTRL_POWPAD   0x10
#define CTRL_4SCORE   0x20
#define CTRL_RESERVE1   0x40
#define CTRL_RESERVE2   0x80

Functions

UNIF_RETURN_CODE open_UNIF (const char *filename, FILE **file, UNIF_OPEN_MODE mode)
UNIF_RETURN_CODE close_UNIF (FILE *file)
UNIF_RETURN_CODE read_header_UNIF (FILE *file, unif_header_t *header)
UNIF_RETURN_CODE write_header_UNIF (FILE *file, unif_header_t *header)
UNIF_RETURN_CODE check_header_UNIF (unif_header_t *header)
UNIF_RETURN_CODE read_chunk_UNIF (FILE *file, unif_chunk_t *chunk_header, void **chunk_data)
UNIF_RETURN_CODE write_chunk_UNIF (FILE *file, unif_chunk_t *chunk_header, void *chunk_data)
const char * get_error_string_UNIF (UNIF_RETURN_CODE code)

Define Documentation

#define CTRL_4SCORE   0x20

Definition at line 22 of file lib_unif.h.

#define CTRL_ARKANOID   0x08

Definition at line 20 of file lib_unif.h.

#define CTRL_POWPAD   0x10

Definition at line 21 of file lib_unif.h.

#define CTRL_RESERVE1   0x40

Definition at line 23 of file lib_unif.h.

#define CTRL_RESERVE2   0x80

Definition at line 24 of file lib_unif.h.

#define CTRL_ROB   0x04

Definition at line 19 of file lib_unif.h.

#define CTRL_STDJOY   0x01

Definition at line 17 of file lib_unif.h.

#define CTRL_ZAPPER   0x02

Definition at line 18 of file lib_unif.h.

#define UNIF_REVISION   0x00000007

Definition at line 14 of file lib_unif.h.


Function Documentation

UNIF_RETURN_CODE check_header_UNIF ( unif_header_t header )

Definition at line 39 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE close_UNIF ( FILE *  file )

Definition at line 69 of file lib_unif.c.

Here is the caller graph for this function:

const char* get_error_string_UNIF ( UNIF_RETURN_CODE  code )

Definition at line 183 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE open_UNIF ( const char *  filename,
FILE **  file,
UNIF_OPEN_MODE  mode 
)

Definition at line 18 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_chunk_UNIF ( FILE *  file,
unif_chunk_t chunk_header,
void **  chunk_data 
)

Definition at line 125 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_header_UNIF ( FILE *  file,
unif_header_t header 
)

Definition at line 85 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE write_chunk_UNIF ( FILE *  file,
unif_chunk_t chunk_header,
void *  chunk_data 
)

Definition at line 160 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE write_header_UNIF ( FILE *  file,
unif_header_t header 
)

Definition at line 105 of file lib_unif.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Enumerations Enumerator Defines