btrfs-progs: Remove duplicate value-get for data_extents_scrubbed
[platform/upstream/btrfs-progs.git] / string-table.h
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.
5  *
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.
10  *
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.
15  */
16
17 #ifndef __STRING_TABLE_H__
18 #define __STRING_TABLE_H__
19
20 struct string_table {
21         int ncols;
22         int nrows;
23         char *cells[];
24 };
25
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 *);
33
34 #endif