<part>
<title>Misc</title>
<xi:include href="xml/iter.xml"/>
+ <xi:include href="xml/version.xml"/>
+ <xi:include href="xml/init.xml"/>
</part>
<index id="api-index-full">
<title>API Index</title>
* @title: Cell
* @short_description: cell API
*
- * An API to access and modify per-cell data and information.
+ * An API to access and modify per-cell data and information. Note that cell is
+ * always part of the line. If you destroy (un-reference) a line than it
+ * destroys all line cells too.
*/
}
/**
- * scols_cell_get_data:
+ * scols_cell_get_color:
* @ce: a pointer to a struct libscols_cell instance
*
* Returns: the current color of @ce.
}
/**
- * scols_column_get_flags:
+ * scols_column_get_header:
* @cl: a pointer to a struct libscols_column instance
*
* Returns: A pointer to a struct libscols_cell instance, representing the
* SECTION: init
* @title: Library initialization
* @short_description: initialize debugging
+ *
+ * The library debug stuff.
*/
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
+/**
+ * LIBSMARTCOLS_VERSION:
+ *
+ * Library version string
+ */
#define LIBSMARTCOLS_VERSION "@LIBSMARTCOLS_VERSION@"
/**
* @ln: a pointer to a struct libscols_line instance
* @n: the number of elements
*
- * Allocates space for @n cells.
+ * Allocates space for @n cells. This function is optional,
+ * and libsmartcols automatically allocates necessary cells
+ * according to number of columns in the table when you add
+ * the line to the table. See scols_table_add_line().
*
* Returns: 0, a negative value in case of an error.
*/
}
/**
- * scols_line_set_data:
+ * scols_line_refer_data:
* @ln: a pointer to a struct libscols_cell instance
* @n: number of the cell which will refer to @data
* @data: actual data to refer to
*/
/**
- * SECTION: table
+ * SECTION: table
* @title: Table
- * @short_description: table API
+ * @short_description: table data API
*
- * Table manipulation API.
+ * Table data manipulation API.
*/
return tb ? tb->ncols : -EINVAL;
}
-/*
+/**
* scols_table_get_nlines:
* @tb: table
*
* GNU Lesser General Public License.
*/
+/**
+ * SECTION: table_print
+ * @title: Table print
+ * @short_description: table print API
+ *
+ * Table output API.
+ */
+
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
return sz;
}
-/*
+/**
* scols_print_table:
* @tb: table
*
return 0;
}
-/*
+/**
* scols_print_table_to_string:
* @tb: table
* @data: pointer to the beginning of a memory area to print to