osl logo

The lightweight storage library


[README] [Download] [INSTALL] [Quick Start] [API] [License] [Contact] [man page]
Public Attributes | List of all members
osl_table_description Struct Reference

#include <osl.h>

Collaboration diagram for osl_table_description:
Collaboration graph
[legend]

Public Attributes

const char * dir
 
const char * name
 
uint16_t num_columns
 
uint8_t flags
 
struct osl_column_descriptioncolumn_descriptions
 

Detailed Description

Describes one osl table.

A pointer to the table description is passed to osl_create_table() and osl_open_table(). The osl library calls which operate on an open table refer to the fields of the table description through this pointer. Hence the table description must not be modified or freed before the table is closed.

Definition at line 135 of file osl.h.

Member Data Documentation

struct osl_column_description* osl_table_description::column_descriptions

The array describing the individual columns of the table.

Definition at line 152 of file osl.h.

const char* osl_table_description::dir

The directory which contains all files of this table. This may be either relative to the cwd or an absolute path.

Definition at line 140 of file osl.h.

Referenced by string_compare().

uint8_t osl_table_description::flags

Further table-wide information,

See also
osl_table_flags.

Definition at line 150 of file osl.h.

const char* osl_table_description::name

The table name. A subdirectory of dir called name is created at table creation time. It must be a valid name for a subdirectory. In particular, no slashes are allowed for name.

Definition at line 146 of file osl.h.

Referenced by string_compare().

uint16_t osl_table_description::num_columns

The number of columns of this table.

Definition at line 148 of file osl.h.


The documentation for this struct was generated from the following file: