teapot-spreadsheet/src/common/xdr.h

25 lines
514 B
C

#ifndef XDR_H
#define XDR_H
/* Functions used for reading the legacy XDR binary file format */
/* Thanks to curses. */
#if 0
#undef TRUE
#undef FALSE
#endif
#include <sys/types.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "sheet.h"
bool_t xdr_cell(XDR *xdrs, Cell *cell);
bool_t xdr_column(XDR *xdrs, int *x, int *z, ColWidT *width);
bool_t xdr_magic(XDR *xdrs);
const char *savexdr(Sheet *sheet, const char *name, unsigned int *count);
const char *loadxdr(Sheet *sheet, const char *name);
#endif