1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00
elinks/src/document/refresh.h
Miciah Dashiel Butler Masters a1a8696cce Introduce start_document_refreshes
start_document_refreshes performs the NULL-pointer checks that previously all callers to start_document_refresh must perform and then calls start_document_refresh.
2007-09-06 18:52:23 +00:00

22 lines
525 B
C

#ifndef EL__DOCUMENT_REFRESH_H
#define EL__DOCUMENT_REFRESH_H
#include "main/timer.h" /* timer_id_T */
struct session;
struct uri;
struct document_refresh {
timer_id_T timer;
unsigned long seconds;
struct uri *uri;
unsigned int restart:1;
};
struct document_refresh *init_document_refresh(unsigned char *url, unsigned long seconds);
void done_document_refresh(struct document_refresh *refresh);
void kill_document_refresh(struct document_refresh *refresh);
void start_document_refreshes(struct session *ses);
#endif