00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * private/schedule.h 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2004 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 2.1, 00014 * as published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 */ 00025 00026 #if !defined(_SPANDSP_PRIVATE_SCHEDULE_H_) 00027 #define _SPANDSP_PRIVATE_SCHEDULE_H_ 00028 00029 /*! A scheduled event entry. */ 00030 struct span_sched_s 00031 { 00032 uint64_t when; 00033 span_sched_callback_func_t callback; 00034 void *user_data; 00035 }; 00036 00037 /*! A scheduled event queue. */ 00038 struct span_sched_state_s 00039 { 00040 uint64_t ticker; 00041 int allocated; 00042 int max_to_date; 00043 span_sched_t *sched; 00044 logging_state_t logging; 00045 }; 00046 00047 #endif 00048 /*- End of file ------------------------------------------------------------*/