2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
#ifndef EL__BOOKMARKS_BACKEND_COMMON_H
|
|
|
|
#define EL__BOOKMARKS_BACKEND_COMMON_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "util/lists.h"
|
|
|
|
#include "util/secsave.h"
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
struct bookmarks_backend {
|
|
|
|
/* Order matters here. --Zas. */
|
2022-01-31 09:32:24 -05:00
|
|
|
const char *(*filename)(int);
|
2005-09-15 09:58:31 -04:00
|
|
|
void (*read)(FILE *);
|
2007-07-26 15:39:08 -04:00
|
|
|
void (*write)(struct secure_save_info *, LIST_OF(struct bookmark) *);
|
2005-09-15 09:58:31 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
void bookmarks_read(void);
|
2007-07-26 15:39:08 -04:00
|
|
|
void bookmarks_write(LIST_OF(struct bookmark) *);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|