X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=string-table.h;h=516ea97a9406f0fa91678210664b5cca58046aca;hb=658cc4daa6ed6e6463cba2f30731abd9a91a7b2d;hp=83c4425d5f762a64945f7bb0cc4948011242e55a;hpb=cbda6f2527774daed9fd88c211aa637b660f08ff;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/string-table.h b/string-table.h index 83c4425..516ea97 100644 --- a/string-table.h +++ b/string-table.h @@ -14,22 +14,20 @@ * Boston, MA 021110-1307, USA. */ -#ifndef STRING_TABLE_H -#define STRING_TABLE_H +#ifndef __STRING_TABLE_H__ +#define __STRING_TABLE_H__ struct string_table { - - int ncols, nrows; - char *cells[]; - + int ncols; + int nrows; + char *cells[]; }; - struct string_table *table_create(int columns, int rows); char *table_printf(struct string_table *tab, int column, int row, - char *fmt, ...); + const char *fmt, ...); char *table_vprintf(struct string_table *tab, int column, int row, - char *fmt, va_list ap); + const char *fmt, va_list ap); void table_dump(struct string_table *tab); void table_free(struct string_table *);