1 /*
   2     parted - a frontend to libparted
   3     Copyright (C) 2006, 2007 Free Software Foundation, Inc.
   4 
   5     This program is free software; you can redistribute it and/or modify
   6     it under the terms of the GNU General Public License as published by
   7     the Free Software Foundation; either version 3 of the License, or
   8     (at your option) any later version.
   9 
  10     This program is distributed in the hope that it will be useful,
  11     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13     GNU General Public License for more details.
  14 
  15     You should have received a copy of the GNU General Public License
  16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17 */
  18 
  19 #include <wchar.h>
  20 
  21 #include <stdio.h>
  22 #include <stdlib.h>
  23 
  24 #include <assert.h>
  25 
  26 #include "strlist.h"
  27 
  28 #ifdef ENABLE_NLS
  29 #       include <wchar.h>
  30 #else
  31 #       ifdef wchar_t
  32 #               undef wchar_t
  33 #       endif
  34 #       define wchar_t char
  35 #endif
  36 
  37 
  38 /* opaque data type */
  39 typedef void Table;
  40 
  41 Table* table_new(int ncols);
  42 void table_destroy (Table* t);
  43 
  44 /* 
  45  * you must not free neither 'row' nor 'list'
  46  *      -- this will be done by table_destroy()
  47  */
  48 void table_add_row (Table* t, wchar_t** row);
  49 void table_add_row_from_strlist (Table* t, StrList* list);
  50         
  51 wchar_t* table_render(Table* t);
  52