This file contains all the definitions and includes all other .h files. More...
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <getopt.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <glib/gi18n-lib.h>
#include <gmodule.h>
#include <gtkhex/gtkhex.h>
#include "data_interpretor.h"
Go to the source code of this file.
Data Structures | |
struct | date_and_time_t |
A human struct to store a date with a time. More... | |
struct | decode_parameters_t |
Used to pass decoding options to the functions. More... | |
struct | decode_t |
Basic way to associate a decode function and an entry that will receive the result. More... | |
struct | decode_generic_t |
Basic way to have as many as we want decoding functions corresponding to one label. More... | |
struct | tab_t |
Tabulation structure to be used in the GtkNoteBook of data_interpretor's window. More... | |
struct | data_window_t |
Data interpretor window structure. More... | |
struct | xml_t |
Structure that contains all the xml definitions loaded at running time using GtkBuilder. More... | |
struct | window_prop_t |
Window properties
| |
struct | all_window_prop_t |
Structure to keep window properties for each window. More... | |
struct | prefs_t |
Data type related to preferences. More... | |
struct | doc_t |
Proposal for a structure that will group all informations about a single document. More... | |
struct | selection_t |
A structure to manage a single selection. More... | |
struct | fdft_t |
struct | heraia_struct_t |
This is the main structure. More... | |
Defines | |
#define | HERAIA_REFRESH_NOTHING 0 |
When nothing is refreshed. | |
#define | HERAIA_REFRESH_NEW_FILE 1 |
When a new file has been loaded. | |
#define | HERAIA_REFRESH_CURSOR_MOVE 2 |
When the cursor is moving. | |
#define | HERAIA_REFRESH_TAB_CHANGED 3 |
When user selects another tab in main notebook. | |
#define | HERAIA_FIND_FORWARD 32 |
When one wants to do a search in the forward direction. | |
#define | HERAIA_FIND_BACKWARD 64 |
When one wants to do a search in the backward direction. | |
#define | HERAIA_FIND_ALL 128 |
When one wants to do a global search in th whole document. | |
#define | WPT_DEFAULT_HEIGHT 200 |
Defines the default height for a window (set in window_prop_t). | |
#define | WPT_DEFAULT_WIDTH 200 |
Defines the default width for a window (set in window_prop_t). | |
Typedefs | |
typedef HexDocument | Heraia_Document |
typedef GtkHex | Heraia_Hex |
typedef gint | HERAIA_ERROR |
Defines heraia error type (this should be used !). | |
typedef gint | RefreshType |
Refresh type (may be used to decide what to do in a particular case). | |
typedef gchar *(* | DecodeFunc )(guchar *, gpointer) |
Templates for the decoding functions. | |
Functions | |
int | libheraia_test (void) |
A simple test function. | |
void | libheraia_initialize (void) |
Python specific. | |
void | libheraia_finalize (void) |
This file contains all the definitions and includes all other .h files.
This is not very friendly, but ease compilation on exotic systems.
Definition in file libheraia.h.
#define HERAIA_FIND_ALL 128 |
When one wants to do a global search in th whole document.
Definition at line 111 of file libheraia.h.
Referenced by fdft_prev_next_bt_clicked(), fdft_search_direction(), ghex_find_decode(), and hex_document_find_decode().
#define HERAIA_FIND_BACKWARD 64 |
When one wants to do a search in the backward direction.
Definition at line 110 of file libheraia.h.
Referenced by fdft_prev_next_bt_clicked(), fdft_search_direction(), ghex_find_decode(), and hex_document_find_decode().
#define HERAIA_FIND_FORWARD 32 |
When one wants to do a search in the forward direction.
Definition at line 109 of file libheraia.h.
Referenced by fdft_prev_next_bt_clicked(), fdft_search_direction(), ghex_find_decode(), and hex_document_find_decode().
#define HERAIA_REFRESH_CURSOR_MOVE 2 |
When the cursor is moving.
Definition at line 95 of file libheraia.h.
Referenced by refresh_event_handler().
#define HERAIA_REFRESH_NEW_FILE 1 |
When a new file has been loaded.
Definition at line 94 of file libheraia.h.
Referenced by on_new_activate(), on_open_activate(), and refresh().
#define HERAIA_REFRESH_NOTHING 0 |
When nothing is refreshed.
Definition at line 93 of file libheraia.h.
Referenced by file_notebook_tab_changed(), and refresh_event_handler().
#define HERAIA_REFRESH_TAB_CHANGED 3 |
When user selects another tab in main notebook.
Definition at line 96 of file libheraia.h.
Referenced by file_notebook_tab_changed(), and refresh().
#define WPT_DEFAULT_HEIGHT 200 |
Defines the default height for a window (set in window_prop_t).
Definition at line 226 of file libheraia.h.
Referenced by init_window_property_struct(), and record_dialog_box_position().
#define WPT_DEFAULT_WIDTH 200 |
Defines the default width for a window (set in window_prop_t).
Definition at line 227 of file libheraia.h.
Referenced by init_window_property_struct(), and record_dialog_box_position().
typedef gchar*(* DecodeFunc)(guchar *, gpointer) |
Templates for the decoding functions.
Decode function template
Definition at line 132 of file libheraia.h.
typedef HexDocument Heraia_Document |
Definition at line 69 of file libheraia.h.
gint HERAIA_ERROR |
Defines heraia error type (this should be used !).
Definition at line 71 of file libheraia.h.
HexDocument Heraia_DocumentGtkHex Heraia_Hex |
Abstract layer this may be usefull if we decide to leave Heraia_Hex and use something else !
Definition at line 70 of file libheraia.h.
gint RefreshType |
Refresh type (may be used to decide what to do in a particular case).
Definition at line 92 of file libheraia.h.
void libheraia_finalize | ( | void | ) |
Definition at line 67 of file libheraia.c.
Referenced by main().
void libheraia_initialize | ( | void | ) |
Python specific.
Definition at line 62 of file libheraia.c.
Referenced by main().
int libheraia_test | ( | void | ) |
A simple test function.
Definition at line 56 of file libheraia.c.
Referenced by main().