Makes few cleanning and adds an obi_dms C constructor

This commit is contained in:
2015-05-26 21:36:55 +02:00
parent 9f69f76704
commit d1324618b8
4 changed files with 90 additions and 53 deletions

View File

@ -23,22 +23,6 @@
#include <obierrno.h>
#include <obilittlebigman.h>
/**
* @brief Value separator in OBIDMSColumn files.
*/
static const char SEPARATOR = '\n';
/**
* @brief Header size in OBIDMSColumn files.
*/
static const int HEADER_SIZE = 4096;
/**
* @brief Number of bytes to map
*/
static const int BUFFER_SIZE = 4;
#define OBIDMS_MAX_COLNAME (128) /**< The maximum length of an OBIDMS column name
*/
@ -63,7 +47,7 @@ typedef struct OBIDMSColumnHeader {
OBIType_t data_type; /**< type of the data */
time_t creation_date; /**< date of creation of the file */
obiversion_t version; /**< version of the OBIColumn */
char name[OBIDMS_MAX_COLNAME]; /**< The column name as a NULL
char name[OBIDMS_MAX_COLNAME+1]; /**< The column name as a NULL
* terminated string.
*/
char comments[1]; /**< comments stored as a classical
@ -145,9 +129,6 @@ OBIDMSColumn_p obi_create_column(OBIDMS_p dms,
*/
obiversion_t obi_latest_version(OBIDMS_p dms,char *name);
char* obi_map_read_only(int file, int start, int size);
void obi_unmap(int size);
#endif /* OBIDMSCOLUMN_H_ */