Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
api-declare-begin.h
Go to the documentation of this file.
1 /*
2  * api-declare-begin.h
3  * Copyright 2010 John Lindgren
4  *
5  * This file is part of Audacious.
6  *
7  * Audacious is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, version 2 or version 3 of the License.
10  *
11  * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13  * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * Audacious. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * The Audacious team does not consider modular code linking to Audacious or
19  * using our public API to be a derived work.
20  */
21 
22 #if ! defined AUD_API_NAME || ! defined AUD_API_SYMBOL || defined AUD_API_DECLARE_H
23 #error Bad usage of api-declare-begin.h
24 #endif
25 
26 #define AUD_API_DECLARE_H
27 
28 #define AUD_FUNC0(t,n) .n = n,
29 #define AUD_FUNC1(t,n,t1,n1) .n = n,
30 #define AUD_FUNC2(t,n,t1,n1,t2,n2) .n = n,
31 #define AUD_FUNC3(t,n,t1,n1,t2,n2,t3,n3) .n = n,
32 #define AUD_FUNC4(t,n,t1,n1,t2,n2,t3,n3,t4,n4) .n = n,
33 #define AUD_FUNC5(t,n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5) .n = n,
34 #define AUD_FUNC6(t,n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5,t6,n6) .n = n,
35 #define AUD_FUNC7(t,n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5,t6,n6,t7,n7) .n = n,
36 #define AUD_FUNC8(t,n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5,t6,n6,t7,n7,t8,n8) .n = n,
37 
38 #define AUD_VFUNC0(n) .n = n,
39 #define AUD_VFUNC1(n,t1,n1) .n = n,
40 #define AUD_VFUNC2(n,t1,n1,t2,n2) .n = n,
41 #define AUD_VFUNC3(n,t1,n1,t2,n2,t3,n3) .n = n,
42 #define AUD_VFUNC4(n,t1,n1,t2,n2,t3,n3,t4,n4) .n = n,
43 #define AUD_VFUNC5(n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5) .n = n,
44 #define AUD_VFUNC6(n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5,t6,n6) .n = n,
45 #define AUD_VFUNC7(n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5,t6,n6,t7,n7) .n = n,
46 #define AUD_VFUNC8(n,t1,n1,t2,n2,t3,n3,t4,n4,t5,n5,t6,n6,t7,n7,t8,n8) .n = n,
47 
48 const struct AUD_API_NAME AUD_API_SYMBOL = {