comparison pwfile.h @ 20:efef93e54c5f

Automatically save the database when receiving a fatal signal
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Wed, 06 Sep 2017 13:56:11 +0200
parents 17fb30016e64
children ec01c579024a
comparison
equal deleted inserted replaced
19:5c6155c8e9b6 20:efef93e54c5f
72 72
73 void pwfile_init(struct pwm_ctx *ctx); 73 void pwfile_init(struct pwm_ctx *ctx);
74 void pwfile_destroy(struct pwm_ctx *); 74 void pwfile_destroy(struct pwm_ctx *);
75 int pwfile_read_file(struct pwm_ctx *, FILE *); 75 int pwfile_read_file(struct pwm_ctx *, FILE *);
76 int pwfile_write_file(struct pwm_ctx *); 76 int pwfile_write_file(struct pwm_ctx *);
77 int pwfile_write_autosave_file(struct pwm_ctx *);
77 union list_item ** pwfile_create_list(struct pwm_ctx *); 78 union list_item ** pwfile_create_list(struct pwm_ctx *);
78 void pwfile_destroy_list(union list_item **); 79 void pwfile_destroy_list(union list_item **);
79 struct metadata * pwfile_get_metadata(struct pwm_ctx *); 80 struct metadata * pwfile_get_metadata(struct pwm_ctx *);
80 void pwfile_destroy_metadata(struct metadata *); 81 void pwfile_destroy_metadata(struct metadata *);
81 int pwfile_create_record(struct pwm_ctx *, struct record *); 82 int pwfile_create_record(struct pwm_ctx *, struct record *);