Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/schedule.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
---|---|
1 /* | |
2 * SpanDSP - a series of DSP components for telephony | |
3 * | |
4 * schedule.h | |
5 * | |
6 * Written by Steve Underwood <steveu@coppice.org> | |
7 * | |
8 * Copyright (C) 2004 Steve Underwood | |
9 * | |
10 * All rights reserved. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU Lesser General Public License version 2.1, | |
14 * as published by the Free Software Foundation. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU Lesser General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU Lesser General Public | |
22 * License along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
24 * | |
25 * $Id: schedule.h,v 1.20 2009/02/10 13:06:47 steveu Exp $ | |
26 */ | |
27 | |
28 /*! \file */ | |
29 | |
30 /*! \page schedule_page Scheduling | |
31 \section schedule_page_sec_1 What does it do? | |
32 ???. | |
33 | |
34 \section schedule_page_sec_2 How does it work? | |
35 ???. | |
36 */ | |
37 | |
38 #if !defined(_SPANDSP_SCHEDULE_H_) | |
39 #define _SPANDSP_SCHEDULE_H_ | |
40 | |
41 /*! A scheduled event entry. */ | |
42 typedef struct span_sched_s span_sched_t; | |
43 | |
44 /*! A scheduled event queue. */ | |
45 typedef struct span_sched_state_s span_sched_state_t; | |
46 | |
47 typedef void (*span_sched_callback_func_t)(span_sched_state_t *s, void *user_data); | |
48 | |
49 #if defined(__cplusplus) | |
50 extern "C" | |
51 { | |
52 #endif | |
53 | |
54 SPAN_DECLARE(uint64_t) span_schedule_next(span_sched_state_t *s); | |
55 SPAN_DECLARE(uint64_t) span_schedule_time(span_sched_state_t *s); | |
56 | |
57 SPAN_DECLARE(int) span_schedule_event(span_sched_state_t *s, int us, span_sched_callback_func_t function, void *user_data); | |
58 SPAN_DECLARE(void) span_schedule_update(span_sched_state_t *s, int us); | |
59 SPAN_DECLARE(void) span_schedule_del(span_sched_state_t *s, int id); | |
60 | |
61 SPAN_DECLARE(span_sched_state_t *) span_schedule_init(span_sched_state_t *s); | |
62 SPAN_DECLARE(int) span_schedule_release(span_sched_state_t *s); | |
63 SPAN_DECLARE(int) span_schedule_free(span_sched_state_t *s); | |
64 | |
65 #if defined(__cplusplus) | |
66 } | |
67 #endif | |
68 | |
69 #endif | |
70 /*- End of file ------------------------------------------------------------*/ |