btrfs-progs: btrfs: Add missing btrfs_close_all_devices for btrfs command
[btrfs-progs-unstable/devel.git] / string-table.h
blob657aae4b1fe341a684023c1a7d223292e700ba76
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 {
22 int ncols, nrows;
23 char *cells[];
28 struct string_table *table_create(int columns, int rows);
29 char *table_printf(struct string_table *tab, int column, int row,
30 char *fmt, ...);
31 char *table_vprintf(struct string_table *tab, int column, int row,
32 char *fmt, va_list ap);
33 void table_dump(struct string_table *tab);
34 void table_free(struct string_table *);
36 #endif