Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

atom.h File Reference

Go to the source code of this file.

Data Structures

struct  atom_s
struct  atoms_s

Typedefs

typedef atom_s atom_t
typedef atom_list_s atom_list_t
typedef 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
 

Referenced by atom_create(), atom_free(), atoms_add(), atoms_free(), atoms_get(), atoms_getn(), and atoms_remove().

typedef struct atoms_s atoms_t
 

Definition at line 49 of file atom.h.

Referenced by atoms_add(), atoms_count(), atoms_create(), atoms_free(), atoms_get(), atoms_getn(), atoms_remove(), and atoms_size().


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.

References atom_s::arg, atom_free(), atom_t, atom_s::data, atom_s::id, and atom_s::size.

int atom_free atom_t atom  ) 
 

Definition at line 46 of file atom.c.

References atom_t, atom_s::data, and atom_s::id.

Referenced by atom_create().

int atoms_add atoms_t ,
atom_t
 

Definition at line 124 of file atom.c.

References atom_t, atoms_t, atoms_s::count, atoms_s::list, atom_s::size, and atoms_s::size.

size_t atoms_count atoms_t  ) 
 

Definition at line 69 of file atom.c.

References atoms_t, and atoms_s::count.

Referenced by atoms_free().

int atoms_create atoms_t **   ) 
 

Definition at line 157 of file atom.c.

References atoms_t, and atoms_s::list.

Referenced by session_mem_module_init().

int atoms_free atoms_t  ) 
 

Definition at line 177 of file atom.c.

References atom_t, atoms_count(), atoms_getn(), atoms_remove(), and atoms_t.

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

Definition at line 102 of file atom.c.

References atom_t, atoms_t, atom_s::id, and atoms_s::list.

int atoms_getn atoms_t ,
size_t  n,
atom_t ** 
 

Definition at line 79 of file atom.c.

References atom_t, atoms_t, atoms_s::count, and atoms_s::list.

Referenced by atoms_free().

int atoms_remove atoms_t ,
atom_t
 

Definition at line 140 of file atom.c.

References atom_t, atoms_t, atoms_s::count, atom_s::size, and atoms_s::size.

Referenced by atoms_free().

size_t atoms_size atoms_t  ) 
 

Definition at line 59 of file atom.c.

References atoms_t, and atoms_s::size.

LIST_HEAD atom_list_s  ,
atom_s 
 


←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved