ghex_heraia_interface.h

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /*
00003   ghex_heraia_interface.h
00004   heraia - an hexadecimal file editor and analyser based on ghex
00005 
00006   (C) Copyright 2005 - 2010 Olivier Delhomme
00007   e-mail : heraia@delhomme.org
00008   URL    : http://heraia.tuxfamily.org
00009 
00010   This program is free software; you can redistribute it and/or modify
00011   it under the terms of the GNU General Public License as published by
00012   the Free Software Foundation; either version 2, or  (at your option)
00013   any later version.
00014 
00015   This program is distributed in the hope that it will be useful,
00016   but WITHOUT ANY WARRANTY;  without even the implied warranty of
00017   MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the
00018   GNU General Public License for more details.
00019 
00020   You should have received a copy of the GNU General Public License
00021   along with this program; if not, write to the Free Software
00022   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
00023 /**
00024  * @file ghex_heraia_interface.h
00025  * Header file providing an interface to Heraia_Hex
00026  */
00027 #ifndef _GHEX_HERAIA_INTERFACE_H_
00028 #define _GHEX_HERAIA_INTERFACE_H_
00029 
00030 extern gboolean ghex_memcpy(Heraia_Hex *gh, guint pos, guint len, guint endianness, guchar *result);
00031 extern gboolean ghex_get_data(GtkWidget *hex_widget, guint length, guint endianness, guchar *c);
00032 
00033 extern doc_t *heraia_hex_document_new(heraia_struct_t *main_struct, char *filename);
00034 extern HERAIA_ERROR heraia_hex_document_save(doc_t *current_doc);
00035 extern HERAIA_ERROR heraia_hex_document_save_as(doc_t *current_doc, gchar *filename);
00036 extern gchar *heraia_hex_document_get_filename(Heraia_Document *hex_doc);
00037 extern gchar *doc_t_document_get_filename(doc_t *doc);
00038 extern guint64 ghex_file_size(Heraia_Hex *gh);
00039 extern guint64 ghex_get_cursor_position(GtkWidget *hex_widget);
00040 extern selection_t *ghex_get_selection(GtkWidget *hex_widget);
00041 
00042 extern doc_t *new_doc_t(Heraia_Document *hex_doc, GtkWidget *hex_widget);
00043 
00044 #endif /* _GHEX_HERAIA_INTERFACE_H_ */
Generated on Tue Aug 10 18:29:02 2010 for Heraia by  doxygen 1.6.3