GEL  0.99
file.h File Reference
#include <gel/common.h>
#include <gel/types.h>
#include <gel/util.h>

Go to the source code of this file.

Data Structures

struct  gel_file_info_t
 

Macros

#define GEL_OPEN_NOPLUGINS   0x00000001
 
#define GEL_OPEN_QUIET   0x00000002
 

Typedefs

typedef __BEGIN_DECLS struct gel_file_info_t gel_file_info_t
 
typedef gel_hash_enum_t gel_sym_iter_t
 

Functions

void gel_close (gel_file_t *e)
 
int gel_file_endianness (gel_file_t *file)
 
int gel_file_infos (gel_file_t *e, gel_file_info_t *fi)
 
gel_file_tgel_open (const char *filename, const char *plugpath, int flags)
 
char * gel_strtab (gel_file_t *f, int sect, u32_t off)
 
gel_sym_tgel_sym_first (gel_sym_iter_t *iter, gel_file_t *file)
 
gel_sym_tgel_sym_next (gel_sym_iter_t *iter)
 

Variables

int gel_errno
 

Macro Definition Documentation

◆ GEL_OPEN_QUIET

#define GEL_OPEN_QUIET   0x00000002

Typedef Documentation

◆ gel_file_info_t

◆ gel_sym_iter_t

Function Documentation

◆ gel_file_endianness()

int gel_file_endianness ( gel_file_t file)

Get the endianness of the given file.

Parameters
fileFile to look endianness in.
Returns
One of GEL_BIG_ENDIAN and GEL_LITTLE_ENDIAN.

◆ gel_file_infos()

int gel_file_infos ( gel_file_t e,
gel_file_info_t fi 
)

Extract public data from the GEL file descriptor. These data becomes invalid if the GEL file is closed.

Parameters
eFile descriptor.
fiResult of the call, that is, GEL file information.
Returns
0 for success, -1 for failure (error code in gel_errno).
Deprecated:
Information is already accessible from the gel_file_t descriptor.