1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/main/main.h
Petr Baudis 0f6d4310ad Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00

28 lines
756 B
C

/* $Id: main.h,v 1.24 2005/06/13 00:43:28 jonas Exp $ */
#ifndef EL__MAIN_MAIN_H
#define EL__MAIN_MAIN_H
enum retval {
RET_OK, /* All is well */
RET_ERROR, /* Failed to fetch URL or write document when dumping */
RET_SIGNAL, /* Catched SIGTERM which forced program to stop */
RET_SYNTAX, /* Cmdline syntax error or bad or missing dump URL */
RET_FATAL, /* Fatal error occurred during initialization */
RET_PING, /* --remote "ping()" found no running ELinkses */
RET_REMOTE, /* --remote failed to connect to a running ELinks */
RET_COMMAND, /* Used internally for exiting from cmdline commands */
};
struct program {
int terminate;
enum retval retval;
unsigned char *path;
};
extern struct program program;
void shrink_memory(int);
#endif