ChangeLog part of dist
[yaz-moved-to-github.git] / client / fhistory.h
1 /*
2  * Copyright (C) 1995-2007, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: fhistory.h,v 1.1 2007-01-24 11:50:18 adam Exp $
6  */
7 /** \file fhistory.h
8  *  \brief file history header
9  */
10
11
12 #ifndef YAZ_FHISTORY_H
13 #define YAZ_FHISTORY_H
14
15 #include <yaz/wrbuf.h>
16
17 YAZ_BEGIN_CDECL
18
19 typedef struct file_history *file_history_t;
20
21 file_history_t file_history_new(void);
22 void file_history_destroy(file_history_t *fhp);
23 void file_history_add_line(file_history_t fh, const char *line);
24 int file_history_save(file_history_t fh);
25 int file_history_load(file_history_t fh);
26 int file_history_trav(file_history_t fh, void *client_data,
27                       void (*callback)(void *client_data, const char *line));
28
29 YAZ_END_CDECL
30
31 #endif
32 /*
33  * Local variables:
34  * c-basic-offset: 4
35  * indent-tabs-mode: nil
36  * End:
37  * vim: shiftwidth=4 tabstop=8 expandtab
38  */
39