00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ 00002 /* 00003 heraia.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 heraia.h 00025 * heraia's header file. 00026 */ 00027 #ifndef _HERAIA_H_ 00028 #define _HERAIA_H_ 00029 00030 /** 00031 * @def HERAIA_DATE 00032 * defines heraia's creation date 00033 * 00034 * @def HERAIA_AUTHORS 00035 * defines heraia's main authors 00036 * 00037 * @def HERAIA_LICENSE 00038 * defines heraia's license (a least GPL) 00039 * 00040 * @def HERAIA_VERSION 00041 * defines heraia's current version and release date of this version 00042 * (00.00.20XX means a development version) 00043 */ 00044 #define HERAIA_AUTHORS "Olivier Delhomme, Sébastien TRICAUD, Grégory AUDET" 00045 #define HERAIA_DATE "20 02 2005" 00046 #define HERAIA_LICENSE "GPL" 00047 #define HERAIA_VERSION "0.0.8 (14.03.2009)" 00048 00049 /** 00050 * @struct Options 00051 * Structure Options gives a way to store program options passed from the 00052 * command line. 00053 * - char *filename is the filename to open (should be a list of filenames) 00054 * - char usage is there to know which kind of usage message we want to display 00055 */ 00056 typedef struct 00057 { 00058 char *filename; /**< the filename to open */ 00059 char usage; /**< to know if we displayed the usage message */ 00060 } Options; 00061 00062 static struct option const long_options[] = 00063 { 00064 {"version", no_argument, NULL, 'v'}, 00065 {"help", no_argument, NULL, 'h'}, 00066 {NULL, 0, NULL, 0} 00067 }; 00068 00069 extern heraia_window_t *get_main_struct(void); 00070 00071 #endif /* _HERAIA_H_ */