]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter&xtypes: update of ABI
authorRobert Kessl <kesslr@centrum.cz>
Thu, 24 Jul 2014 08:26:37 +0000 (10:26 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Thu, 24 Jul 2014 08:26:37 +0000 (10:26 +0200)
maint/libucw.abi
ucw/table-types.h
ucw/table.h
ucw/xtypes.h

index 21141179c98384469ceb7c9dda6bda160fdad2f9..d04422639f6abb87552958bd5d0b7b78ff2d1c7e 100644 (file)
@@ -501,62 +501,45 @@ str_to_uint
 str_to_uns
 str_to_u32
 str_to_u64
+# ucw/table-types.h
+table_col_size
+table_col_timestamp
+xt_size
+xt_timestamp
 # ucw/table.h
 table_init
 table_cleanup
 table_start
 table_end
-table_set_col_order
-table_set_col_order_by_name
-table_end_row
+table_col_str
+table_col_generic_format
 table_col_printf
-table_append_printf
-table_get_col_idx
-table_get_col_list
 table_col_fbstart
 table_col_fbend
+table_end_row
+table_reset_row
+table_get_col_idx
+table_set_col_opt
+table_get_col_list
+table_set_col_order
+table_col_is_printed
+table_set_col_order_by_name
 table_set_formatter
+table_set_option_value
+table_set_option
+table_set_gary_options
 table_fmt_human_readable
 table_fmt_machine_readable
 table_fmt_blockline
-table_set_option
-table_set_option_value
-table_set_gary_options
 table_col_int
-table_col_int_fmt
-table_col_int_name
 table_col_uint
-table_col_uint_fmt
-table_col_uint_name
 table_col_double
-table_col_double_fmt
-table_col_double_name
 table_col_str
-table_col_str_fmt
-table_col_str_name
 table_col_intmax
-table_col_intmax_fmt
-table_col_intmax_name
 table_col_s64
-table_col_s64_fmt
-table_col_s64_name
 table_col_uintmax
-table_col_uintmax_fmt
-table_col_uintmax_name
 table_col_u64
-table_col_u64_fmt
-table_col_u64_name
 table_col_bool
-table_col_bool_name
-table_col_bool_fmt
-table_append_int
-table_append_uint
-table_append_double
-table_append_str
-table_append_intmax
-table_append_uintmax
-table_append_u64
-table_append_bool
 # ucw/tbf.h
 tbf_init
 tbf_limit
@@ -620,6 +603,19 @@ work_queue_cleanup
 work_submit
 work_wait
 work_try_wait
+# ucw/xtypes.h
+xtype_unit_parser
+xtype_parse_fmt
+xtype_format_fmt
+xt_str
+xt_int
+xt_s64
+xt_intmax
+xt_uint
+xt_u64
+xt_uintmax
+xt_bool
+xt_double
 # ucw/sorter/common.h
 sorter_trace
 sorter_trace_array
index 004a237bf6cf02b001744def143e2a6d0323e3a1..ab7d3f58ad5da8bf1f838741cdedd8731e570a6f 100644 (file)
@@ -9,6 +9,13 @@
 
 #include <ucw/table.h>
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define table_col_size ucw_table_col_size
+#define table_col_timestamp ucw_table_col_timestamp
+#define xt_size ucw_xt_size
+#define xt_timestamp ucw_xt_timestamp
+#endif
+
 enum size_units {
   SIZE_UNIT_BYTE,
   SIZE_UNIT_KILOBYTE,
index 91a26d43ed817008fe501ad40fd3af73c92ee4e3..783c802eff2591dbe7e246a91ac4696ee39b0a4d 100644 (file)
 #include <ucw/mempool.h>
 #include <ucw/xtypes.h>
 
-// FIXME: update these macros
 #ifdef CONFIG_UCW_CLEAN_ABI
-#define table_append_bool ucw_table_append_bool
-#define table_append_double ucw_table_append_double
-#define table_append_int ucw_table_append_int
-#define table_append_intmax ucw_table_append_intmax
-#define table_append_printf ucw_table_append_printf
-#define table_append_str ucw_table_append_str
-#define table_append_u64 ucw_table_append_u64
-#define table_append_uint ucw_table_append_uint
-#define table_append_uintmax ucw_table_append_uintmax
 #define table_cleanup ucw_table_cleanup
 #define table_col_bool ucw_table_col_bool
-#define table_col_bool_fmt ucw_table_col_bool_fmt
-#define table_col_bool_name ucw_table_col_bool_name
 #define table_col_double ucw_table_col_double
-#define table_col_double_fmt ucw_table_col_double_fmt
-#define table_col_double_name ucw_table_col_double_name
 #define table_col_fbend ucw_table_col_fbend
 #define table_col_fbstart ucw_table_col_fbstart
+#define table_col_generic_format ucw_table_col_generic_format
 #define table_col_int ucw_table_col_int
-#define table_col_int_fmt ucw_table_col_int_fmt
-#define table_col_int_name ucw_table_col_int_name
 #define table_col_intmax ucw_table_col_intmax
-#define table_col_intmax_fmt ucw_table_col_intmax_fmt
-#define table_col_intmax_name ucw_table_col_intmax_name
+#define table_col_is_printed ucw_table_col_is_printed
 #define table_col_printf ucw_table_col_printf
 #define table_col_s64 ucw_table_col_s64
-#define table_col_s64_fmt ucw_table_col_s64_fmt
-#define table_col_s64_name ucw_table_col_s64_name
 #define table_col_str ucw_table_col_str
-#define table_col_str_fmt ucw_table_col_str_fmt
-#define table_col_str_name ucw_table_col_str_name
+#define table_col_str ucw_table_col_str
 #define table_col_u64 ucw_table_col_u64
-#define table_col_u64_fmt ucw_table_col_u64_fmt
-#define table_col_u64_name ucw_table_col_u64_name
 #define table_col_uint ucw_table_col_uint
-#define table_col_uint_fmt ucw_table_col_uint_fmt
-#define table_col_uint_name ucw_table_col_uint_name
 #define table_col_uintmax ucw_table_col_uintmax
-#define table_col_uintmax_fmt ucw_table_col_uintmax_fmt
-#define table_col_uintmax_name ucw_table_col_uintmax_name
 #define table_end ucw_table_end
 #define table_end_row ucw_table_end_row
 #define table_fmt_blockline ucw_table_fmt_blockline
@@ -63,6 +38,8 @@
 #define table_get_col_idx ucw_table_get_col_idx
 #define table_get_col_list ucw_table_get_col_list
 #define table_init ucw_table_init
+#define table_reset_row ucw_table_reset_row
+#define table_set_col_opt ucw_table_set_col_opt
 #define table_set_col_order ucw_table_set_col_order
 #define table_set_col_order_by_name ucw_table_set_col_order_by_name
 #define table_set_formatter ucw_table_set_formatter
index b1f2cc060fcb7a6f8273df227b6845c4be3cd11e..d57e8a956c56d5804570240afef02fae5ee72563 100644 (file)
 #ifndef _UCW_XTYPE_H
 #define _UCW_XTYPE_H
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define xt_bool ucw_xt_bool
+#define xt_double ucw_xt_double
+#define xt_int ucw_xt_int
+#define xt_intmax ucw_xt_intmax
+#define xt_s64 ucw_xt_s64
+#define xt_str ucw_xt_str
+#define xt_u64 ucw_xt_u64
+#define xt_uint ucw_xt_uint
+#define xt_uintmax ucw_xt_uintmax
+#define xtype_format_fmt ucw_xtype_format_fmt
+#define xtype_parse_fmt ucw_xtype_parse_fmt
+#define xtype_unit_parser ucw_xtype_unit_parser
+#endif
+
 struct mempool;
 
 /**