Project: finder, src: docid.h


ドキュメント ID を振っていくロジックのヘッダファイル
/**
 * docid.h
 * ドキュメントを保存し、ドキュメント ID を管理するロジック
 */

#ifndef DOCID_H_
#define DOC_ID_H_
#ifdef __cplusplus
extern "C" {
#endif

/* プロトタイプ宣言 */
unsigned long long createDocId(int fd, const char *text, int len);
char *getDocFromId(int fd, unsigned long long id, int *plen);
unsigned long long getLastDocId(int fd);

#ifdef __cplusplus
}
#endif
#endif // DOCID_H_