btrfs-progs: check: Remove root parameter from btrfs_fix_block_accounting
[btrfs-progs-unstable/devel.git] / string-table.h
blob516ea97a9406f0fa91678210664b5cca58046aca
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public
4 * License v2 as published by the Free Software Foundation.
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 * General Public License for more details.
11 * You should have received a copy of the GNU General Public
12 * License along with this program; if not, write to the
13 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
14 * Boston, MA 021110-1307, USA.
17 #ifndef __STRING_TABLE_H__
18 #define __STRING_TABLE_H__
20 struct string_table {
21 int ncols;
22 int nrows;
23 char *cells[];
26 struct string_table *table_create(int columns, int rows);
27 char *table_printf(struct string_table *tab, int column, int row,
28 const char *fmt, ...);
29 char *table_vprintf(struct string_table *tab, int column, int row,
30 const char *fmt, va_list ap);
31 void table_dump(struct string_table *tab);
32 void table_free(struct string_table *);
34 #endif