data_interpretor.c

Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
00002 /*
00003   data_interpretor.c
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 data_interpretor.c
00025  * Here one may find tools to manage the data_interpretor window
00026  */
00027 #include <libheraia.h>
00028 
00029 static guint which_endianness(heraia_window_t *main_window);
00030 static guint which_stream_size(heraia_window_t *main_window);
00031 static void interpret(doc_t *doc, DecodeFunc decode_it, decode_parameters_t *decode_parameters, GtkWidget *entry, guint length);
00032 static void close_data_interpretor_window(GtkWidget *widget, gpointer data);
00033 static void connect_data_interpretor_signals(heraia_window_t *main_window);
00034 static void refresh_one_row(doc_t *doc, decode_generic_t *row,  guint nb_cols, decode_parameters_t *decode_parameters);
00035 static void refresh_one_tab(doc_t *doc, data_window_t *dw, tab_t *tab, decode_parameters_t *decode_parameters);
00036 static void refresh_all_tabs(doc_t *doc, data_window_t *dw, decode_parameters_t *decode_parameters);
00037 static void add_default_tabs(heraia_window_t *main_window);
00038 
00039 /**
00040  * @fn guint which_endianness(heraia_window_t *main_window)
00041  *  Determines which endianness is selected that is to say
00042  *  which radio button is active in the window
00043  * @param main_window : main structure
00044  * @return Something of the following, depending on what selected the user :
00045  *         - H_DI_LITTLE_ENDIAN for little endian encoding (default answer)
00046  *         - H_DI_BIG_ENDIAN for big endian encoding
00047  *         - H_DI_MIDDLE_ENDIAN for middle endian encoding
00048  */
00049 static guint which_endianness(heraia_window_t *main_window)
00050 {
00051         GtkRadioButton *rb = GTK_RADIO_BUTTON(heraia_get_widget(main_window->xmls->main, "diw_rb_little_endian"));
00052         GtkWidget *activated = NULL;
00053         const gchar *widget_name = NULL;
00054 
00055         activated = gtk_radio_button_get_active_from_widget(rb);
00056         widget_name = gtk_widget_get_name(activated);
00057 
00058         if (g_ascii_strcasecmp(widget_name, "diw_rb_little_endian") == 0)
00059                 {
00060                         return H_DI_LITTLE_ENDIAN;
00061                 }
00062         else if (g_ascii_strcasecmp(widget_name, "diw_rb_big_endian") == 0)
00063                 {
00064                         return H_DI_BIG_ENDIAN;
00065                 }
00066         else if (g_ascii_strcasecmp(widget_name, "diw_rb_middle_endian") == 0)
00067                 {
00068                         return H_DI_MIDDLE_ENDIAN;
00069                 }
00070         else
00071                 return H_DI_LITTLE_ENDIAN;  /* default interpretation case */
00072 }
00073 
00074 
00075 /**
00076  * returns stream size as selected in the spin button
00077  * @param main_window : main structure
00078  * @return returns the value of the spin button or 1 if this value is not valid
00079  */
00080 static guint which_stream_size(heraia_window_t *main_window)
00081 {
00082    GtkWidget *spin_button = NULL;
00083    guint stream_size = 1;
00084 
00085    if (main_window != NULL && main_window->xmls != NULL && main_window->xmls->main != NULL)
00086    {
00087            spin_button = heraia_get_widget(main_window->xmls->main, "stream_size_spin_button");
00088 
00089            stream_size = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spin_button));
00090 
00091            if (stream_size >= 1)
00092            {
00093                    return stream_size;
00094            }
00095            else
00096            {
00097                    return 1;
00098            }
00099    }
00100    else
00101    {
00102            return 1;
00103    }
00104 }
00105 
00106 
00107 /**
00108  *   Here we do interpret a something according to the decode_it function and we
00109  *   write down the result in a widget designated "entry"
00110  *  @warning We are assuming that main_window != NULL and main_window->xml != NULL
00111  *
00112  *    @param main_window : main structure
00113  *    @param decode_it : a DecodeDateFunc which is a function to be called to
00114  *                                       decode the stream
00115  *     @param decode_parameters : structure that passes some arguments to the
00116  *            decoding functions
00117  *    @param entry : a GtkWidget * entry widget where we will put the result
00118  *                   of the computation of decode_it function
00119  *    @param length : the length of the data to be decoded (guint)
00120  * @todo Add text to the decode_generic_t struct to describe what to tell if
00121  *       something's wrong or if we can not decode anything
00122  */
00123 static void interpret(doc_t *doc, DecodeFunc decode_it, decode_parameters_t *decode_parameters, GtkWidget *entry, guint length)
00124 {
00125         gint result = 0;    /**< used to test different results of function calls */
00126         guchar *c = NULL;   /**< the character under the cursor                   */
00127         gchar *text = NULL; /**< decoded text                                     */
00128 
00129         c = (guchar *) g_malloc0(sizeof(guchar) * length);
00130 
00131         result = ghex_get_data(doc->hex_widget, length, decode_parameters->endianness, c);
00132 
00133         if (result == TRUE)
00134                 {
00135                         text = decode_it(c, (gpointer) decode_parameters);
00136 
00137                         if (text != NULL)
00138                                 {
00139                                         gtk_entry_set_text(GTK_ENTRY(entry), text);
00140                                 }
00141                         else
00142                                 {
00143                                         text = g_strdup_printf("Something's wrong!");
00144                                         gtk_entry_set_text(GTK_ENTRY(entry), text);
00145                                 }
00146                 }
00147         else
00148                 {
00149                         text = g_strdup_printf("Cannot interpret as a %d byte(s)", length);
00150                         gtk_entry_set_text(GTK_ENTRY(entry), text);
00151                 }
00152 
00153         g_free(c);
00154         g_free(text);
00155 }
00156 
00157 
00158 /**
00159  * @fn void close_data_interpretor_window(GtkWidget *widget, gpointer data)
00160  *  "Emulates" the user click on the main window menu entry called DIMenu
00161  *  whose aim is to display or hide the data interpretor window
00162  * @param widget : the widget caller (may be NULL here)
00163  * @param data : a gpointer to the main structure : main_window, this must NOT
00164  *        be NULL !
00165  */
00166 static void close_data_interpretor_window(GtkWidget *widget, gpointer data)
00167 {
00168         heraia_window_t *main_window = (heraia_window_t *) data;
00169 
00170         if (main_window != NULL && main_window->xmls != NULL  && main_window->xmls->main)
00171                 {
00172                         g_signal_emit_by_name(heraia_get_widget(main_window->xmls->main, "DIMenu"), "activate");
00173                 }
00174 }
00175 
00176 
00177 /**
00178  * This function refreshes one row of the tab
00179  * @param dw : current data window
00180  * @param row : the row that we want to refresh
00181  * @param nb_cols : number of columns in this particular row (this IS the same
00182  *                  for all rows in that tab
00183  * @param decode_parameters : structure that passes some arguments to the
00184  *        decoding functions
00185  */
00186 static void refresh_one_row(doc_t *doc, decode_generic_t *row,  guint nb_cols, decode_parameters_t *decode_parameters)
00187 {
00188         decode_t *couple = NULL;   /**< the couple entry / function */
00189         guint i = 0 ;
00190 
00191         while ( i < nb_cols)
00192         {
00193                 couple = g_ptr_array_index(row->decode_array, i);
00194 
00195                 if (row->fixed_size == FALSE)
00196                 {
00197                         row->data_size = decode_parameters->stream_size;
00198                 }
00199 
00200                 interpret(doc, couple->func, decode_parameters, couple->entry, row->data_size);
00201                 i++;
00202         }
00203 }
00204 
00205 /**
00206  * This function refreshes one entire tab (row by row)
00207  * @param dw : current data window
00208  * @param tab : the tab to refresh
00209  * @param decode_parameters : structure that passes some arguments to the
00210  *        decoding functions
00211  */
00212 static void refresh_one_tab(doc_t *doc, data_window_t *dw, tab_t *tab, decode_parameters_t *decode_parameters)
00213 {
00214         decode_generic_t *row = NULL; /**< the row we want to refresh */
00215         guint i = 0;
00216 
00217         while (i < tab->nb_rows)
00218         {
00219                 row = g_ptr_array_index(tab->rows, i);
00220                 refresh_one_row(doc, row, tab->nb_cols-1, decode_parameters);
00221                 i++;
00222         }
00223 }
00224 
00225 /**
00226  * Refreshes all tabs
00227  * @param dw : current data window
00228  * @param decode_parameters : structure that passes some arguments to the
00229  *        decoding functions
00230  */
00231 static void refresh_all_tabs(doc_t *doc, data_window_t *dw, decode_parameters_t *decode_parameters)
00232 {
00233         tab_t *tab = NULL;
00234         guint i = 0;
00235 
00236         while (i < dw->nb_tabs)
00237         {
00238                 tab = g_ptr_array_index(dw->tabs, i);
00239                 refresh_one_tab(doc, dw, tab, decode_parameters);
00240                 i++;
00241         }
00242 
00243 }
00244 
00245 /**
00246  * @fn void refresh_data_interpretor_window(GtkWidget *widget, gpointer data)
00247  *  Refreshes the data interpretor window with the new values
00248  * @param widget : the widget caller (may be NULL here)
00249  * @param data : a gpointer to the main structure : main_window, this must NOT
00250  *        be NULL !
00251  * @todo if speed is a matter, think about taking off this decode_parameters
00252  *       structure from here.
00253  */
00254 void refresh_data_interpretor_window(GtkWidget *widget, gpointer data)
00255 {
00256         heraia_window_t *main_window = (heraia_window_t *) data;  /**< data interpretor window structure */
00257         decode_parameters_t *decode_parameters = NULL;
00258         guint endianness = 0;
00259         guint stream_size = 0;
00260 
00261         if (main_window != NULL &&
00262                 main_window->current_doc != NULL &&
00263                 main_window->current_DW != NULL &&
00264                 main_window->win_prop->main_dialog->displayed == TRUE)
00265                 {
00266                         endianness = which_endianness(main_window);  /**< Endianness is computed only once here */
00267                         stream_size =  which_stream_size(main_window); /**< stream size is computed only once here */
00268 
00269                         decode_parameters = new_decode_parameters_t(endianness, stream_size);
00270 
00271                         refresh_all_tabs(main_window->current_doc, main_window->current_DW, decode_parameters);
00272 
00273                         g_free(decode_parameters);
00274                 }
00275 }
00276 
00277 
00278 /**
00279  * @fn void connect_data_interpretor_signals(heraia_window_t *main_window)
00280  *  Connects data interpretor window's signals to the
00281  *  right functions
00282  * @param main_window : main structure
00283  */
00284 static void connect_data_interpretor_signals(heraia_window_t *main_window)
00285 {
00286         /* When data interpretor's window is killed or destroyed */
00287         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "data_interpretor_window")), "delete_event",
00288                                          G_CALLBACK(delete_dt_window_event), main_window);
00289 
00290         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "data_interpretor_window")), "destroy",
00291                                      G_CALLBACK(destroy_dt_window), main_window);
00292 
00293         /* Menu "close" */
00294         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "diw_close_menu")), "activate",
00295                                          G_CALLBACK(close_data_interpretor_window), main_window);
00296 
00297         /* Radio Button "Little Endian" */
00298         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "diw_rb_little_endian")), "toggled",
00299                                          G_CALLBACK(refresh_data_interpretor_window), main_window);
00300 
00301         /* Radio Button "Big Endian" */
00302         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "diw_rb_big_endian")), "toggled",
00303                                          G_CALLBACK(refresh_data_interpretor_window), main_window);
00304 
00305         /* Radio Button "Middle Endian" */
00306         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "diw_rb_middle_endian")), "toggled",
00307                                          G_CALLBACK(refresh_data_interpretor_window), main_window);
00308 
00309         /* Spin button */
00310         g_signal_connect(G_OBJECT(heraia_get_widget(main_window->xmls->main, "stream_size_spin_button")), "value-changed",
00311                                          G_CALLBACK(refresh_data_interpretor_window), main_window);
00312 
00313 }
00314 
00315 /**
00316  * @fn void data_interpretor_init_interface(heraia_window_t *main_window)
00317  *  Inits the data interpretor structure and window with default values
00318  *  @warning Should be called only once at program's beginning
00319  */
00320 void data_interpretor_init_interface(heraia_window_t *main_window)
00321 {
00322         data_window_t *dw = NULL;
00323 
00324         if (main_window != NULL)
00325                 {
00326                         /* Signals connections */
00327                         connect_data_interpretor_signals(main_window);
00328 
00329                         dw = main_window->current_DW;
00330 
00331                         if (dw != NULL)
00332                                 {
00333                                         dw->diw = heraia_get_widget(main_window->xmls->main, "data_interpretor_window");
00334 
00335                                         /* Here init all defaults tabs */
00336                                         add_default_tabs(main_window);
00337                                 }
00338                 }
00339 }
00340 
00341 /**
00342  * Adds a new tab in the data interpretor window
00343  * @param notebook : the notebook to which we want to add this new tab
00344  * @param index : index of this new tab. If you rely on this make sure it's
00345  *                a primary key !
00346  * @param label : label of the tab
00347  * @param nb_cols : number of columns (including the first column of labels)
00348  * @param ... : nb_cols arguments that will be the labels of the columns
00349  */
00350 tab_t *add_new_tab_in_data_interpretor(GtkNotebook *notebook, guint index, gchar *label, guint nb_cols, ...)
00351 {
00352         tab_t *tab = NULL;            /**< tab structure that will remember everything !                     */
00353         va_list args;                 /**< va_list arguments passed to create a new tab with those columns   */
00354         guint i = 0;
00355         gchar *col_label = NULL;      /**< used to fetch atguments                                           */
00356         GPtrArray *col_labels = NULL; /**< used to remember the columns labels (the arguments in GtkWidgets) */
00357         GPtrArray *vboxes = NULL;     /**< used to remember vboxes (in order to be able to pack things later */
00358         GtkWidget *child = NULL;      /**< notebook tab's child container                                    */
00359         GtkWidget *hpaned = NULL;     /**< used for hpaned creation                                          */
00360         GtkWidget *hpaned2 = NULL;    /**< in case that we have more than 2 arguments                        */
00361         GtkWidget *vbox = NULL;       /**< used for vbox creation                                            */
00362         GtkWidget *vbox_label = NULL; /**< used for label creation in the new vboxes                         */
00363 
00364         col_labels = g_ptr_array_new();
00365         vboxes = g_ptr_array_new();
00366 
00367         va_start(args, nb_cols);
00368         for (i = 0 ; i < nb_cols ; i++)
00369         {
00370                 col_label = (gchar *) va_arg(args, int);
00371                 vbox_label = gtk_label_new(col_label);
00372                 gtk_misc_set_padding(GTK_MISC(vbox_label), 3, 3);       /* properties for the labels */
00373                 gtk_misc_set_alignment(GTK_MISC(vbox_label), 0.5, 0.5);
00374                 g_ptr_array_add(col_labels, (gpointer) vbox_label);
00375         }
00376         va_end(args);
00377 
00378         tab = (tab_t *) g_malloc0(sizeof(tab_t));
00379 
00380     i = 0;
00381     hpaned = gtk_hpaned_new();
00382         gtk_container_set_border_width(GTK_CONTAINER(hpaned), 2); /* properties for the hpaned */
00383         child = hpaned;
00384         vbox = gtk_vbox_new(FALSE, 2);
00385         gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE);
00386         g_ptr_array_add(vboxes, vbox);
00387         gtk_paned_add1(GTK_PANED(hpaned), (gpointer) vbox);
00388         vbox_label = g_ptr_array_index(col_labels, i);
00389         gtk_box_pack_start(GTK_BOX(vbox), vbox_label, FALSE, FALSE, 3);
00390 
00391         i++;
00392         while (i < nb_cols-1)
00393         {
00394                 hpaned2 = gtk_hpaned_new();
00395                 gtk_container_set_border_width(GTK_CONTAINER(hpaned2), 2); /* properties for the hpaned */
00396                 gtk_paned_add2(GTK_PANED(hpaned), hpaned2);
00397                 hpaned = hpaned2;                  /* translation */
00398                 vbox = gtk_vbox_new(FALSE, 2);
00399                 gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE);
00400                 g_ptr_array_add(vboxes, (gpointer) vbox);
00401                 gtk_paned_add1(GTK_PANED(hpaned), vbox);
00402                 vbox_label = g_ptr_array_index(col_labels, i);
00403                 gtk_box_pack_start(GTK_BOX(vbox), vbox_label, FALSE, FALSE, 3);
00404                 i++;
00405         }
00406 
00407         vbox = gtk_vbox_new(FALSE, 2);
00408         g_ptr_array_add(vboxes, (gpointer) vbox);
00409         gtk_paned_add2(GTK_PANED(hpaned), vbox);
00410         gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE);
00411         vbox_label = g_ptr_array_index(col_labels, i);
00412         gtk_box_pack_start(GTK_BOX(vbox), vbox_label, FALSE, FALSE, 3);
00413 
00414         tab->index = index;
00415         tab->nb_cols = nb_cols;
00416         tab->nb_rows = 0;
00417         tab->label = gtk_label_new(label);   /* tab's label */
00418         gtk_misc_set_padding(GTK_MISC(tab->label), 2, 2);
00419         gtk_misc_set_alignment(GTK_MISC(tab->label), 0.5, 0.5);
00420         tab->col_labels = col_labels;
00421         tab->vboxes = vboxes;
00422         tab->rows = NULL;
00423 
00424         gtk_widget_show_all(child);
00425         gtk_notebook_append_page(notebook, child, tab->label);
00426 
00427         return tab;
00428 }
00429 
00430 /**
00431  * Adds a row to a particular tab
00432  * @param tab : the tab to which we want to add the row
00433  * @param row : the row we want to add (make sure it has been initialized)
00434  */
00435 void add_new_row_to_tab(tab_t *tab, decode_generic_t *row)
00436 {
00437         GtkWidget *vbox = NULL;  /**< the vbox to which we want to pack           */
00438         decode_t *couple = NULL; /**< couple from which we want to pack the entry */
00439         guint i = 0;
00440         guint j = 0;
00441 
00442         if (tab != NULL && row != NULL)
00443         {
00444 
00445                 if (tab->rows == NULL)
00446                 {
00447                         tab->rows = g_ptr_array_new();
00448                 }
00449 
00450                 g_ptr_array_add(tab->rows, (gpointer) row);
00451                 tab->nb_rows++;
00452 
00453                 /* label packing */
00454                 vbox = g_ptr_array_index(tab->vboxes, 0);
00455                 gtk_box_pack_start(GTK_BOX(vbox), row->label, FALSE, FALSE, 3);
00456 
00457                 j = 0;
00458                 i = 1;
00459 
00460                 while (i <  tab->nb_cols)
00461                 {
00462                         vbox = g_ptr_array_index(tab->vboxes, i);
00463                         couple = g_ptr_array_index(row->decode_array, j);
00464                         gtk_box_pack_start(GTK_BOX(vbox), couple->entry, FALSE, FALSE, 1);
00465                         gtk_widget_show(couple->entry);
00466                         j++;
00467                         i++;
00468                 }
00469         }
00470 }
00471 
00472 /**
00473  * Inits data interpretor with default tabs
00474  * Must be called only once at bootime
00475  * @param main_window : main_structure
00476  * */
00477 static void add_default_tabs(heraia_window_t *main_window)
00478 {
00479         GtkWidget *notebook = NULL;
00480         tab_t *tab = NULL;
00481         decode_generic_t *row = NULL;
00482         data_window_t *dw = NULL;
00483 
00484         dw = main_window->current_DW;
00485         notebook = heraia_get_widget(main_window->xmls->main, "diw_notebook");
00486 
00487         dw->tabs = g_ptr_array_new();
00488 
00489         /** Adding a tab for numbers */
00490         tab = add_new_tab_in_data_interpretor(GTK_NOTEBOOK(notebook), 0, "Numbers", 3, "Length", "Value unsigned", "Value signed");
00491 
00492         if (tab != NULL)
00493         {
00494                 g_ptr_array_add(dw->tabs, (gpointer) tab);
00495                 dw->nb_tabs++;
00496                 row = new_decode_generic_t("8 bits", 1, TRUE, 2, decode_8bits_unsigned, decode_8bits_signed);
00497                 add_new_row_to_tab(tab, row);
00498                 row = new_decode_generic_t("16 bits", 2, TRUE, 2, decode_16bits_unsigned, decode_16bits_signed);
00499                 add_new_row_to_tab(tab, row);
00500                 row = new_decode_generic_t("32 bits", 4, TRUE, 2, decode_32bits_unsigned, decode_32bits_signed);
00501                 add_new_row_to_tab(tab, row);
00502                 row = new_decode_generic_t("64 bits", 8, TRUE, 2, decode_64bits_unsigned, decode_64bits_signed);
00503                 add_new_row_to_tab(tab, row);
00504         }
00505 
00506         /** Adding a tab for floting numbers */
00507         tab = add_new_tab_in_data_interpretor(GTK_NOTEBOOK(notebook), 0, "Floats", 3, "Length", "Normal Notation", "Exponential notation");
00508 
00509         if (tab != NULL)
00510         {
00511                 g_ptr_array_add(dw->tabs, (gpointer) tab);
00512                 dw->nb_tabs++;
00513                 row = new_decode_generic_t("Float (32 bits)", 4, TRUE, 2, decode_float_normal, decode_float_scientific);
00514                 add_new_row_to_tab(tab, row);
00515                 row = new_decode_generic_t("Double (64 bits)", 8, TRUE, 2, decode_double_normal, decode_double_scientific);
00516                 add_new_row_to_tab(tab, row);
00517         }
00518 
00519         /** Adding a tab for date and time */
00520         tab = add_new_tab_in_data_interpretor(GTK_NOTEBOOK(notebook), 2, "Dates and Times", 2, "Type", "Value");
00521 
00522         if (tab != NULL)
00523         {
00524                 g_ptr_array_add(dw->tabs, (gpointer) tab);
00525                 dw->nb_tabs++;
00526                 row = new_decode_generic_t("MS-DOS", 4, TRUE, 1, decode_dos_date);
00527                 add_new_row_to_tab(tab, row);
00528                 row = new_decode_generic_t("Filetime", 8, TRUE, 1, decode_filetime_date);
00529                 add_new_row_to_tab(tab, row);
00530                 row = new_decode_generic_t("C", 4, TRUE, 1, decode_C_date);
00531                 add_new_row_to_tab(tab, row);
00532                 row = new_decode_generic_t("HFS", 4, TRUE, 1, decode_HFS_date);
00533                 add_new_row_to_tab(tab, row);
00534         }
00535 
00536         /** Adding a tab for binary based conversions */
00537         tab = add_new_tab_in_data_interpretor(GTK_NOTEBOOK(notebook), 3, "Binary based", 2, "Type", "Value");
00538 
00539         if (tab != NULL)
00540         {
00541                 g_ptr_array_add(dw->tabs, (gpointer) tab);
00542                 dw->nb_tabs++;
00543                 row = new_decode_generic_t("Bits", 1, FALSE, 1, decode_to_bits);
00544                 add_new_row_to_tab(tab, row);
00545                 row = new_decode_generic_t("Packed BCD", 1, FALSE, 1, decode_packed_BCD);
00546                 add_new_row_to_tab(tab, row);
00547         }
00548 }
00549 
00550 
00551 
00552 
00553 
00554 
00555 
00556 
00557 
00558 
00559 
00560 
00561 
00562 
00563 
00564 
00565 
00566 

Generated on Tue May 19 20:01:36 2009 for Heraia by  doxygen 1.5.8