/** \file osl.h User interface for the object storage layer. */
#include <sys/mman.h>
+#include <inttypes.h>
/** Export all declarations in this file. */
#pragma GCC visibility push(default)
* Describes one column of a osl table.
*/
struct osl_column_description {
- /** One of the tree possible types of storage */
- enum osl_storage_type storage_type;
- /** Specifies further properties of the column */
- enum osl_storage_flags storage_flags;
+ /** One of the tree possible types of storage, \sa osl_storage_type. */
+ uint16_t storage_type;
+ /** Specifies further properties of the column, \sa osl_storage_flags. */
+ uint16_t storage_flags;
/**
* The column name determines the name of the directory where all data
* for this column will be stored. Its hash is stored in the table
const char *name;
/** The number of columns of this table. */
uint16_t num_columns;
- /** Further table-wide information. */
- enum osl_table_flags flags;
+ /** Further table-wide information, \sa osl_table_flags. */
+ uint8_t flags;
/** The array describing the individual columns of the table. */
struct osl_column_description *column_descriptions;
};
*
* Each osl table must be opened before its data can be accessed.
*
- * \param table_desc Describes the table to be opened.
+ * \param desc Describes the table to be opened.
* \param result Contains a pointer to the open table on success.
*
* The table description given by \a desc should coincide with the
* Retrieve an object identified by row and column
*
* \param t Pointer to an open osl table.
- * \param r Pointer to the row.
+ * \param row Pointer to the row.
* \param col_num The column number.
* \param object The result pointer.
*
int osl_get_rank(const struct osl_table *t, struct osl_row *r,
unsigned col_num, unsigned *rank);
-/**
- * Compare two osl objects pointing to hash values.
- *
- * \param obj1 Pointer to the first hash object.
- * \param obj2 Pointer to the second hash object.
- *
- * \return The values required for an osl compare function.
- *
- * \sa osl_compare_func, uint32_compare().
- */
-int osl_hash_compare(const struct osl_object *obj1,
- const struct osl_object *obj2);
-
/**
* Get a string describing the error code passed in the argument.
*