From 408f78b73793fd8ee3a9bff25afaf55b3b25a495 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 13 Mar 2011 22:50:54 +0000 Subject: Move schedule.h to utils/ svn path=/trunk/netsurf/; revision=12039 --- utils/schedule.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 utils/schedule.h (limited to 'utils') diff --git a/utils/schedule.h b/utils/schedule.h new file mode 100644 index 000000000..b5fe386cc --- /dev/null +++ b/utils/schedule.h @@ -0,0 +1,32 @@ +/* + * Copyright 2011 Daniel Silverstone + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/** \file + * Job scheduler (interface). + */ + +#ifndef _NETSURF_UTILS_SCHEDULE_H_ +#define _NETSURF_UTILS_SCHEDULE_H_ + +/* In platform specific schedule.c. */ +typedef void (*schedule_callback_fn)(void *p); + +void schedule(int t, schedule_callback_fn callback, void *p); +void schedule_remove(schedule_callback_fn callback, void *p); + +#endif -- cgit v1.2.3