obiblob_indexer.c 967 Bytes
Newer Older
Celine Mercier's avatar
Celine Mercier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
/****************************************************************************
 * Obiblob functions                                                       *
 ****************************************************************************/

/**
 * @file obiblob_indexer.c
 * @author Celine Mercier
 * @date April 12th 2016
 * @brief Functions handling the indexing and retrieval of blob structures.
 */


#include <stdlib.h>
#include <stdio.h>

#include "obiblob_indexer.h"
#include "obidms.h"


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_create_indexer(OBIDMS_p dms, const char* name);

inline Obi_indexer_p obi_open_indexer(OBIDMS_p dms, const char* name);

inline int obi_close_indexer(Obi_indexer_p indexer);

inline index_t obi_indexer_add(Obi_indexer_p indexer, Obi_blob_p value);

inline Obi_blob_p obi_indexer_get(Obi_indexer_p indexer, index_t idx);