file_internals.h File Reference


Detailed Description

dba_file internals, useful to implement dba_file extensions

#include <dballe/core/file.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  _dba_file
 Base contents of a dba_file. More...

Typedefs

typedef dba_err(*) dba_file_create_fun (dba_encoding type, FILE *fd, const char *mode, dba_file *file)
 Type of function that is used to create a kind of dba_file instance.
typedef void(*) dba_file_delete_fun (dba_file)
 Type of function that is used to delete a kind of dba_file instance.
typedef dba_err(*) dba_file_read_fun (dba_file file, dba_rawmsg msg, int *found)
 Type of function that is used to read from a kind of dba_file instance.
typedef dba_err(*) dba_file_write_fun (dba_file file, dba_rawmsg msg)
 Type of function that is used to write to a kind of dba_file instance.

Functions

dba_err dba_file_default_write_impl (dba_file file, dba_rawmsg msg)
 Simple default file write implementation.

Variables

dba_file_create_fun dba_file_aof_create
 Function used to create a dba_file for AOF.
dba_file_create_fun dba_file_bufr_create
 Function used to create a dba_file for BUFR.
dba_file_create_fun dba_file_crex_create
 Function used to create a dba_file for CREX.


Variable Documentation

dba_file_create_fun dba_file_aof_create

Function used to create a dba_file for AOF.

This is originally initialised to NULL. The AOF implementation needs to set this to the function used to create a dba_file for AOF: they can do so using a library constructor, i.e. a function defined with __attribute__((constructor)).

dba_file_create_fun dba_file_bufr_create

Function used to create a dba_file for BUFR.

This is originally initialised to NULL. The BUFR implementation needs to set this to the function used to create a dba_file for BUFR: they can do so using a library constructor, i.e. a function defined with __attribute__((constructor)).

dba_file_create_fun dba_file_crex_create

Function used to create a dba_file for CREX.

This is originally initialised to NULL. The CREX implementation needs to set this to the function used to create a dba_file for CREX: they can do so using a library constructor, i.e. a function defined with __attribute__((constructor)).


Generated on Fri Jun 22 15:18:05 2007 for libdballe-bufrex by  doxygen 1.5.2