#ifndef __UUDEVIEW_H__
#define __UUDEVIEW_H__
#ifndef _ANSI_ARGS_
#ifdef PROTOTYPES
#define _ANSI_ARGS_(c) c
#else
#define _ANSI_ARGS_(c) ()
#endif
#endif
#define UUMSG_MESSAGE (0)
#define UUMSG_NOTE (1)
#define UUMSG_WARNING (2)
#define UUMSG_ERROR (3)
#define UUMSG_FATAL (4)
#define UUMSG_PANIC (5)
#define UURET_OK (0)
#define UURET_IOERR (1)
#define UURET_NOMEM (2)
#define UURET_ILLVAL (3)
#define UURET_NODATA (4)
#define UURET_NOEND (5)
#define UURET_UNSUP (6)
#define UURET_EXISTS (7)
#define UURET_CONT (8)
#define UURET_CANCEL (9)
#define UUFILE_READ (0)
#define UUFILE_MISPART (1)
#define UUFILE_NOBEGIN (2)
#define UUFILE_NOEND (4)
#define UUFILE_NODATA (8)
#define UUFILE_OK (16)
#define UUFILE_ERROR (32)
#define UUFILE_DECODED (64)
#define UUFILE_TMPFILE (128)
#define UU_ENCODED (1)
#define B64ENCODED (2)
#define XX_ENCODED (3)
#define BH_ENCODED (4)
#define PT_ENCODED (5)
#define QP_ENCODED (6)
#define YENC_ENCODED (7)
#define UUOPT_VERSION (0)
#define UUOPT_FAST (1)
#define UUOPT_DUMBNESS (2)
#define UUOPT_BRACKPOL (3)
#define UUOPT_VERBOSE (4)
#define UUOPT_DESPERATE (5)
#define UUOPT_IGNREPLY (6)
#define UUOPT_OVERWRITE (7)
#define UUOPT_SAVEPATH (8)
#define UUOPT_IGNMODE (9)
#define UUOPT_DEBUG (10)
#define UUOPT_ERRNO (14)
#define UUOPT_PROGRESS (15)
#define UUOPT_USETEXT (16)
#define UUOPT_PREAMB (17)
#define UUOPT_TINYB64 (18)
#define UUOPT_ENCEXT (19)
#define UUOPT_REMOVE (20)
#define UUOPT_MOREMIME (21)
#define UUOPT_DOTDOT (22)
#define UUACT_IDLE (0)
#define UUACT_SCANNING (1)
#define UUACT_DECODING (2)
#define UUACT_COPYING (3)
#define UUACT_ENCODING (4)
struct _uufile;
typedef struct _uulist {
short state;
short mode;
int begin;
int end;
short uudet;
int flags;
long size;
char *filename;
char *subfname;
char *mimeid;
char *mimetype;
char *binfile;
struct _uufile *thisfile;
int *haveparts;
int *misparts;
struct _uulist *NEXT;
struct _uulist *PREV;
} uulist;
typedef struct {
int action;
char curfile[256];
int partno;
int numparts;
long fsize;
int percent;
long foffset;
long totsize;
} uuprogress;
#ifndef UUEXPORT
#define UUEXPORT
#endif
#ifdef __cplusplus
extern "C" {
#endif
int UUEXPORT UUInitialize _ANSI_ARGS_((void));
int UUEXPORT UUGetOption _ANSI_ARGS_((int, int *, char *, int));
int UUEXPORT UUSetOption _ANSI_ARGS_((int, int, char *));
char * UUEXPORT UUstrerror _ANSI_ARGS_((int));
int UUEXPORT UUSetMsgCallback _ANSI_ARGS_((void *,
void (*) (void *,
char *,
int)));
int UUEXPORT UUSetBusyCallback _ANSI_ARGS_((void *,
int (*) (void *,
uuprogress *),
long));
int UUEXPORT UUSetFileCallback _ANSI_ARGS_((void *,
int (*) (void *, char *,
char *, int)));
int UUEXPORT UUSetFNameFilter _ANSI_ARGS_((void *,
char * (*) (void *,
char *)));
int UUEXPORT UUSetFileNameCallback _ANSI_ARGS_((void *,
char * (*) (void *,
char *, char *)));
char * UUEXPORT UUFNameFilter _ANSI_ARGS_((char *));
int UUEXPORT UULoadFile _ANSI_ARGS_((char *, char *, int, int *));
int UUEXPORT UULoadFileWithPartNo _ANSI_ARGS_((char *, char *, int, int, int *));
uulist *UUEXPORT UUGetFileListItem _ANSI_ARGS_((int));
int UUEXPORT UURenameFile _ANSI_ARGS_((uulist *, char *));
int UUEXPORT UUDecodeToTemp _ANSI_ARGS_((uulist *));
int UUEXPORT UURemoveTemp _ANSI_ARGS_((uulist *));
int UUEXPORT UUDecodeFile _ANSI_ARGS_((uulist *, char *));
int UUEXPORT UUInfoFile _ANSI_ARGS_((uulist *, void *,
int (*) (void *,
char *)));
int UUEXPORT UUSmerge _ANSI_ARGS_((int));
int UUEXPORT UUCleanUp _ANSI_ARGS_((void));
int UUEXPORT UUQuickDecode _ANSI_ARGS_((FILE *, FILE *,
char *, long));
int UUEXPORT UUEncodeMulti _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, char *, int));
int UUEXPORT UUEncodePartial _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, char *,
int, int, long,
unsigned long*));
int UUEXPORT UUEncodeToStream _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, int));
int UUEXPORT UUEncodeToFile _ANSI_ARGS_((FILE *, char *, int,
char *, char *, long));
int UUEXPORT UUE_PrepSingle _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, int,
char *, char *,
char *, int));
int UUEXPORT UUE_PrepPartial _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, int,
int, long, long, char *,
char *, char *, int));
int UUEXPORT UUE_PrepSingleExt _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, int,
char *, char *,
char *, char *,
int));
int UUEXPORT UUE_PrepPartialExt _ANSI_ARGS_((FILE *, FILE *,
char *, int,
char *, int,
int, long, long, char *,
char *, char *, char *,
int));
#ifdef __cplusplus
}
#endif
#endif