46 lines
1.6 KiB
C
46 lines
1.6 KiB
C
/* This file has been automatically generated by geneet.py */
|
|
/* DO NOT MODIFY */
|
|
|
|
#ifndef __HISTORY_H__
|
|
#define __HISTORY_H__
|
|
|
|
#include <Eina.h>
|
|
#include <Eet.h>
|
|
|
|
typedef struct _Hist_Item Hist_Item;
|
|
typedef struct _Hist Hist;
|
|
|
|
/* Hist_Item */
|
|
Hist_Item *hist_item_new(const char * title, const char * url, unsigned int visit_count, double last_visit);
|
|
void hist_item_free(Hist_Item *hist_item);
|
|
|
|
void hist_item_title_set(Hist_Item *hist_item, const char * title);
|
|
const char * hist_item_title_get(const Hist_Item *hist_item);
|
|
void hist_item_url_set(Hist_Item *hist_item, const char * url);
|
|
const char * hist_item_url_get(const Hist_Item *hist_item);
|
|
void hist_item_visit_count_set(Hist_Item *hist_item, unsigned int visit_count);
|
|
unsigned int hist_item_visit_count_get(const Hist_Item *hist_item);
|
|
void hist_item_last_visit_set(Hist_Item *hist_item, double last_visit);
|
|
double hist_item_last_visit_get(const Hist_Item *hist_item);
|
|
|
|
/* Hist */
|
|
Hist *hist_new(int version);
|
|
void hist_free(Hist *hist);
|
|
|
|
void hist_version_set(Hist *hist, int version);
|
|
int hist_version_get(const Hist *hist);
|
|
void hist_items_add(Hist *hist, const char * url, Hist_Item *hist_item);
|
|
void hist_items_del(Hist *hist, const char * url);
|
|
Hist_Item *hist_items_get(const Hist *hist, const char * key);
|
|
Eina_Hash *hist_items_hash_get(const Hist *hist);
|
|
void hist_items_modify(Hist *hist, const char * key, void *value);
|
|
|
|
Hist *hist_load(const char *filename);
|
|
Eina_Bool hist_save(Hist *hist, const char *filename);
|
|
|
|
/* Global initializer / shutdown functions */
|
|
void history_init(void);
|
|
void history_shutdown(void);
|
|
|
|
#endif /* __HISTORY_H__ */
|