Subversion Repositories Kolibri OS

Rev

Rev 3584 | Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright 2011 Daniel Silverstone <dsilvers@netsurf-browser.org>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. /** \file
  20.  * Job scheduler (interface).
  21.  */
  22.  
  23. #ifndef _NETSURF_UTILS_SCHEDULE_H_
  24. #define _NETSURF_UTILS_SCHEDULE_H_
  25.  
  26. /* In platform specific schedule.c. */
  27. typedef void (*schedule_callback_fn)(void *p);
  28.  
  29. void schedule(int t, schedule_callback_fn callback, void *p);
  30. void schedule_remove(schedule_callback_fn callback, void *p);
  31.  
  32. #endif
  33.