Merge r14152 from theora-exp.
[xiph/unicode.git] / postfish / feedback.h
blob7e511aa2de887484d290c5b5f3abc949ced23081
1 /*
3 * postfish
4 *
5 * Copyright (C) 2002-2005 Monty and Xiph.Org
7 * Postfish is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * Postfish is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Postfish; see the file COPYING. If not, write to the
19 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 typedef struct feedback_generic{
25 struct feedback_generic *next;
26 } feedback_generic;
28 typedef struct feedback_generic_pool{
29 feedback_generic *feedback_list_head;
30 feedback_generic *feedback_list_tail;
31 feedback_generic *feedback_pool;
32 } feedback_generic_pool;
34 extern feedback_generic *feedback_new(feedback_generic_pool *pool,
35 feedback_generic *(*constructor)(void));
36 extern void feedback_push(feedback_generic_pool *pool,
37 feedback_generic *f);
38 extern feedback_generic *feedback_pull(feedback_generic_pool *pool);
39 extern void feedback_old(feedback_generic_pool *pool,
40 feedback_generic *f);
41 extern int feedback_deep(feedback_generic_pool *pool);