source: trunk/third/moira/backup/dump_db.h @ 24319

Revision 24319, 653 bytes checked in by broder, 14 years ago (diff)
New Moira snapshot from SVN.
Line 
1/* $Id: dump_db.h 3956 2010-01-05 20:56:56Z zacheiss $ */
2
3#include <stdio.h>
4#include <moira.h>
5
6#define SEP_CHAR ('|')
7
8void do_backups(char *prefix);
9void do_restores(char *prefix);
10
11void dump_int(FILE *f, int n);
12void dump_str(FILE *f, char *str);
13#define dump_nl(f) { if (putc('\n', f) < 0) wpunt(); }
14#define dump_sep(f) { if (putc(SEP_CHAR, f) < 0) wpunt(); }
15
16int parse_int(FILE *f);
17void parse_str(FILE *f, char *buf, int maxlen);
18void parse_sep(FILE *f);
19void parse_nl(FILE *f);
20
21void wpunt(void);
22void punt(char *msg);
23void dbmserr(void);
24void safe_close(FILE *stream);
25FILE *open_file(char *prefix, char *suffix);
26char *endtrim(char *save);
Note: See TracBrowser for help on using the repository browser.