X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=osl_core.h;h=6046d8c768cc35906387be94e8304a99aede35ca;hp=3359aa782a2e2cc8232dc12b6fa339885b5f4e11;hb=cb73d5fa58cec287978337f5e186fff52bccd252;hpb=2dba3a38dcfe721842404f01e9b2adb59c302604 diff --git a/osl_core.h b/osl_core.h index 3359aa7..6046d8c 100644 --- a/osl_core.h +++ b/osl_core.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2008 Andre Noll + * Copyright (C) 2007-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -190,9 +190,27 @@ _static_inline_ size_t index_column_description_size(const char *name) return MIN_IDX_COLUMN_DESCRIPTION_SIZE + strlen(name) - 1; } +/* + * The version used by this instance of the library. Written to the index of + * newly created tables. + */ #define CURRENT_TABLE_VERSION 1 + +/* + * The lowest library version that is able to use tables of version + * CURRENT_TABLE_VERSION. Also written to the index of new tables. If + * compat_version(table) > current_version(lib) the table can not be opened. + */ +#define COMPAT_TABLE_VERSION 0 + +/* + * The lowest table version this library understands. On open, if + * current_version(table) < min_version(lib) the osl_open_table() call + * fails. + */ #define MIN_TABLE_VERSION 1 -#define MAX_TABLE_VERSION 1 + + /** An index header must be at least that many bytes long. */ #define MIN_INDEX_HEADER_SIZE(num_cols) (MIN_IDX_COLUMN_DESCRIPTION_SIZE \ * num_cols + IDX_COLUMN_DESCRIPTIONS)