atom.h File Reference

Go to the source code of this file.

Data Structures

struct  atom_s
struct  atoms_s

Typedefs

typedef struct atom_s atom_t
typedef struct atom_list_s atom_list_t
typedef struct atoms_s atoms_t

Functions

 LIST_HEAD (atom_list_s, atom_s)
int atom_create (const char *id, const char *data, size_t size, void *arg, atom_t **pa)
int atom_free (atom_t *atom)
int atoms_create (atoms_t **)
int atoms_free (atoms_t *)
size_t atoms_size (atoms_t *)
size_t atoms_count (atoms_t *)
int atoms_getn (atoms_t *, size_t n, atom_t **)
int atoms_get (atoms_t *, const char *id, atom_t **)
int atoms_add (atoms_t *, atom_t *)
int atoms_remove (atoms_t *, atom_t *)

Typedef Documentation

typedef struct atom_list_s atom_list_t

Definition at line 33 of file atom.h.

typedef struct atom_s atom_t
typedef struct atoms_s atoms_t

Definition at line 49 of file atom.h.


Function Documentation

int atom_create ( const char *  id,
const char *  data,
size_t  size,
void *  arg,
atom_t **  pa 
)

Definition at line 16 of file atom.c.

int atom_free ( atom_t atom  ) 

Definition at line 46 of file atom.c.

int atoms_add ( atoms_t ,
atom_t  
)

Definition at line 124 of file atom.c.

size_t atoms_count ( atoms_t  ) 

Definition at line 69 of file atom.c.

int atoms_create ( atoms_t **   ) 

Definition at line 157 of file atom.c.

int atoms_free ( atoms_t  ) 

Definition at line 177 of file atom.c.

int atoms_get ( atoms_t ,
const char *  id,
atom_t **   
)

Definition at line 102 of file atom.c.

int atoms_getn ( atoms_t ,
size_t  n,
atom_t **   
)

Definition at line 79 of file atom.c.

int atoms_remove ( atoms_t ,
atom_t  
)

Definition at line 140 of file atom.c.

size_t atoms_size ( atoms_t  ) 

Definition at line 59 of file atom.c.

LIST_HEAD ( atom_list_s  ,
atom_s   
)