Heraia
0.1.8
|
#include <libheraia.h>
Go to the source code of this file.
Functions | |
static GList * | treatment_reverse_do_it (GList *gchar_list) |
General background : Each treatment has to provide 4 functions : More... | |
static gpointer | treatment_reverse_copy (gpointer data) |
Copy treatment's datas. More... | |
static void | treatment_reverse_init (gpointer data) |
Treatment initialisation (called at runtime when selected by the user) More... | |
static void | treatment_reverse_kill (gpointer data) |
Deletes treatment (itself) More... | |
value_t * | new_value_t (guint length, guchar *bin_data) |
treatment_t * | copy_treatment (treatment_t *tment) |
Copies the treatment and calls the treatment copy function that copies the data of the treatment itself. More... | |
treatment_t * | find_treatment (GList *tment_list, gchar *tment_name) |
Finds a treatment, by name, in the treatment list returns the treatment if found, NULL otherwise. More... | |
GList * | init_treatments (void) |
Here we do init the available treatment list Should only be called once at init time. More... | |
treatment_t* copy_treatment | ( | treatment_t * | tment | ) |
Copies the treatment and calls the treatment copy function that copies the data of the treatment itself.
Definition at line 62 of file treatments.c.
treatment_t* find_treatment | ( | GList * | tment_list, |
gchar * | tment_name | ||
) |
Finds a treatment, by name, in the treatment list returns the treatment if found, NULL otherwise.
Definition at line 100 of file treatments.c.
GList* init_treatments | ( | void | ) |
Here we do init the available treatment list Should only be called once at init time.
Definition at line 124 of file treatments.c.
References treatment_reverse_copy(), treatment_reverse_do_it(), treatment_reverse_init(), and treatment_reverse_kill().
value_t* new_value_t | ( | guint | length, |
guchar * | bin_data | ||
) |
Definition at line 43 of file treatments.c.
References value_t::bytes, and value_t::length.
|
static |
Copy treatment's datas.
Definition at line 177 of file treatments.c.
Referenced by init_treatments().
|
static |
General background : Each treatment has to provide 4 functions :
Reverse every lists that contains bytes from the hexwidget.
Definition at line 187 of file treatments.c.
References value_t::bytes, and value_t::length.
Referenced by init_treatments().
|
static |
Treatment initialisation (called at runtime when selected by the user)
We may init : . structures and widgets (if any) an put all this in 'data'
Definition at line 146 of file treatments.c.
Referenced by init_treatments().
|
static |
Deletes treatment (itself)
As there is no data nor structure, there is nothing to free !!
Definition at line 161 of file treatments.c.
Referenced by init_treatments().