summaryrefslogtreecommitdiff
path: root/src/mcp/tools/common/history.h
blob: ac08d991fd49242f8d928105e06664faa30934cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef TINY_CONVMEM_MCP_TOOLS_HISTORY_H
#define TINY_CONVMEM_MCP_TOOLS_HISTORY_H

#include "storage/store.h"

typedef struct tiny_history_index tiny_history_index_t;

tiny_history_index_t *tiny_history_index_build(const tiny_store_t *store);
void tiny_history_index_free(tiny_history_index_t *index);
bool
tiny_history_index_add(tiny_history_index_t *index, const tiny_store_t *store, size_t entry_index);
bool tiny_history_index_session(const tiny_history_index_t *index,
                                const char *session_id,
                                const size_t **entries,
                                size_t *count);

#endif