Improved function to build an indexer name

This commit is contained in:
Celine Mercier
2016-04-22 17:38:23 +02:00
parent 839b3000a8
commit 6977c4315c
2 changed files with 6 additions and 1 deletions

View File

@@ -19,6 +19,9 @@
#include "obidebug.h" #include "obidebug.h"
#define DEBUG_LEVEL 0 // TODO has to be defined somewhere else (cython compil flag?)
inline int obi_indexer_exists(OBIDMS_p dms, const char* name); inline int obi_indexer_exists(OBIDMS_p dms, const char* name);
inline Obi_indexer_p obi_indexer(OBIDMS_p dms, const char* name); inline Obi_indexer_p obi_indexer(OBIDMS_p dms, const char* name);

View File

@@ -162,6 +162,8 @@ inline Obi_blob_p obi_indexer_get(Obi_indexer_p indexer, index_t idx)
/** /**
* @brief Builds an indexer name in the form columnname_columnversion_indexer. * @brief Builds an indexer name in the form columnname_columnversion_indexer.
* *
* @warning The returned pointer has to be freed by the caller.
*
* @param column_name The name of the column associated with the indexer. * @param column_name The name of the column associated with the indexer.
* @param column_version The version of the column associated with the indexer. * @param column_version The version of the column associated with the indexer.
* *
@@ -171,7 +173,7 @@ inline Obi_blob_p obi_indexer_get(Obi_indexer_p indexer, index_t idx)
* @since April 2016 * @since April 2016
* @author Celine Mercier (celine.mercier@metabarcoding.org) * @author Celine Mercier (celine.mercier@metabarcoding.org)
*/ */
char* obi_build_indexer_name(const char* column_name, obiversion_t column_version) char* obi_build_indexer_name(const char* column_name, obiversion_t column_version);
#endif /* OBIBLOB_INDEXER_H_ */ #endif /* OBIBLOB_INDEXER_H_ */