*
* \return Standard.
*/
-int osl_create_table(const struct osl_table_description *desc)
+__export int osl_create_table(const struct osl_table_description *desc)
{
const struct osl_column_description *cd;
char *table_dir = NULL, *filename;
*
* \sa osl_open_table(), unmap_table().
*/
-int osl_close_table(struct osl_table *t, enum osl_close_flags flags)
+__export int osl_close_table(struct osl_table *t, enum osl_close_flags flags)
{
int ret;
*
* \return Standard.
*/
-int osl_open_table(const struct osl_table_description *table_desc,
+__export int osl_open_table(const struct osl_table_description *table_desc,
struct osl_table **result)
{
int i, ret;
*
* \sa struct osl_table_description, osl_compare_func, osl_add_row().
*/
-int osl_add_and_get_row(struct osl_table *t, struct osl_object *objects,
+__export int osl_add_and_get_row(struct osl_table *t, struct osl_object *objects,
struct osl_row **row)
{
int i, ret;
*
* This is equivalent to osl_add_and_get_row(t, objects, NULL).
*/
-int osl_add_row(struct osl_table *t, struct osl_object *objects)
+__export int osl_add_row(struct osl_table *t, struct osl_object *objects)
{
return osl_add_and_get_row(t, objects, NULL);
}
*
* \sa osl_storage_type, osl_open_disk_object().
*/
-int osl_get_object(const struct osl_table *t, const struct osl_row *r,
+__export int osl_get_object(const struct osl_table *t, const struct osl_row *r,
unsigned col_num, struct osl_object *object)
{
const struct osl_column_description *cd;
* \return Positive on success, negative on errors. Possible errors include:
* \p E_BAD_TABLE, errors returned by osl_get_object().
*/
-int osl_del_row(struct osl_table *t, struct osl_row *row)
+__export int osl_del_row(struct osl_table *t, struct osl_row *row)
{
struct osl_row *r = row;
int i, ret;
*
* \sa osl_storage_flags
*/
-int osl_get_row(const struct osl_table *t, unsigned col_num,
+__export int osl_get_row(const struct osl_table *t, unsigned col_num,
const struct osl_object *obj, struct osl_row **result)
{
int ret;
*
* \sa osl_storage_flags, osl_rbtree_loop_reverse(), osl_compare_func.
*/
-int osl_rbtree_loop(const struct osl_table *t, unsigned col_num,
+__export int osl_rbtree_loop(const struct osl_table *t, unsigned col_num,
void *private_data, osl_rbtree_loop_func *func)
{
struct osl_column *col;
*
* \sa osl_rbtree_loop().
*/
-int osl_rbtree_loop_reverse(const struct osl_table *t, unsigned col_num,
+__export int osl_rbtree_loop_reverse(const struct osl_table *t, unsigned col_num,
void *private_data, osl_rbtree_loop_func *func)
{
struct osl_column *col;
*
* \return Standard
*/
-int osl_update_object(struct osl_table *t, const struct osl_row *r,
+__export int osl_update_object(struct osl_table *t, const struct osl_row *r,
unsigned col_num, struct osl_object *obj)
{
struct osl_column *col;
*
* \sa osl_get_object(), osl_storage_type, osl_close_disk_object().
*/
-int osl_open_disk_object(const struct osl_table *t, const struct osl_row *r,
+__export int osl_open_disk_object(const struct osl_table *t, const struct osl_row *r,
unsigned col_num, struct osl_object *obj)
{
const struct osl_column_description *cd;
*
* \sa para_munmap().
*/
-int osl_close_disk_object(struct osl_object *obj)
+__export int osl_close_disk_object(struct osl_object *obj)
{
return para_munmap(obj->data, obj->size);
}
*
* \return Positive on success, \p -E_BAD_TABLE if \a t is \p NULL.
*/
-int osl_get_num_rows(const struct osl_table *t, unsigned *num_rows)
+__export int osl_get_num_rows(const struct osl_table *t, unsigned *num_rows)
{
if (!t)
return -E_BAD_TABLE;
*
* \sa osl_get_nth_row().
*/
-int osl_get_rank(const struct osl_table *t, struct osl_row *r,
+__export int osl_get_rank(const struct osl_table *t, struct osl_row *r,
unsigned col_num, unsigned *rank)
{
struct osl_object obj;
* \sa osl_storage_flags, osl_compare_func, osl_get_row(),
* osl_rbtree_last_row(), osl_rbtree_first_row(), osl_get_rank().
*/
-int osl_get_nth_row(const struct osl_table *t, unsigned col_num,
+__export int osl_get_nth_row(const struct osl_table *t, unsigned col_num,
unsigned n, struct osl_row **result)
{
struct osl_column *col;
*
* \sa osl_get_nth_row(), osl_rbtree_last_row().
*/
-int osl_rbtree_first_row(const struct osl_table *t, unsigned col_num,
+__export int osl_rbtree_first_row(const struct osl_table *t, unsigned col_num,
struct osl_row **result)
{
return osl_get_nth_row(t, col_num, 1, result);
*
* \sa osl_get_nth_row(), osl_rbtree_first_row().
*/
-int osl_rbtree_last_row(const struct osl_table *t, unsigned col_num,
+__export int osl_rbtree_last_row(const struct osl_table *t, unsigned col_num,
struct osl_row **result)
{
unsigned num_rows;