ghex_heraia_interface.h

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
00002 /*
00003   ghex_heraia_interface.h
00004   heraia - an hexadecimal file editor and analyser based on ghex
00005  
00006   (C) Copyright 2005 - 2009 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 GtkHex
00026  */
00027 #ifndef _GHEX_HERAIA_INTERFACE_H_
00028 #define _GHEX_HERAIA_INTERFACE_H_
00029 
00030 extern gboolean ghex_memcpy(GtkHex *gh, guint pos, guint len, guint endianness, guchar *result);
00031 extern gboolean ghex_get_data(data_window_t *data_window, guint length, guint endianness, guchar *c);
00032 
00033 extern HERAIA_ERROR heraia_hex_document_new(heraia_window_t *main_window, char *filename);
00034 extern HERAIA_ERROR heraia_hex_document_save(heraia_window_t *main_window);
00035 extern HERAIA_ERROR heraia_hex_document_save_as(heraia_window_t *main_window, gchar *filename);
00036 extern gchar *heraia_hex_document_get_filename(Heraia_Document *doc);
00037 extern guint64 ghex_file_size(GtkHex *gh);
00038 extern guint64 ghex_get_cursor_position(data_window_t *data_window);
00039 
00040 #endif /* _GHEX_HERAIA_INTERFACE_H_ */

Generated on Sat Feb 14 11:44:16 2009 for Heraia by  doxygen 1.5.6