Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
misc.h
Go to the documentation of this file.
1 /*
2  * misc.h
3  * Copyright 2010-2011 John Lindgren
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions, and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions, and the following disclaimer in the documentation
13  * provided with the distribution.
14  *
15  * This software is provided "as is" and without any warranty, express or
16  * implied. In no event shall the authors be liable for any damages arising from
17  * the use of this software.
18  */
19 
20 #ifndef AUDACIOUS_MISC_H
21 #define AUDACIOUS_MISC_H
22 
23 #include <audacious/api.h>
24 #include <audacious/types.h>
25 #include <libaudcore/index.h>
26 #include <libaudcore/tuple.h>
27 #include <libaudcore/vfs.h>
28 
29 enum {
39  AUD_PATH_GTKRC_FILE, /* deprecated */
41 };
42 
43 typedef struct {
44  char * name;
45  float preamp, bands[10];
47 
49 
50 enum {
59 
60 typedef void (* MenuFunc) (void);
61 
62 enum {
63  AUD_VIS_TYPE_CLEAR, /* like VisPlugin::clear() */
64  AUD_VIS_TYPE_MONO_PCM, /* like VisPlugin::render_mono_pcm() */
65  AUD_VIS_TYPE_MULTI_PCM, /* like VisPlugin::render_multi_pcm() */
66  AUD_VIS_TYPE_FREQ, /* like VisPlugin::render_freq() */
68 
69 /* generic type; does not correspond to actual function types */
70 typedef void (* VisFunc) (void);
71 
72 #define AUD_API_NAME MiscAPI
73 #define AUD_API_SYMBOL misc_api
74 
75 #ifdef _AUDACIOUS_CORE
76 
77 #include "api-local-begin.h"
78 #include "misc-api.h"
79 #include "api-local-end.h"
80 
81 #define create_widgets(b, w, a) create_widgets_with_domain (b, w, a, PACKAGE)
82 
83 #else
84 
86 #include <audacious/misc-api.h>
88 
90 #include <audacious/misc-api.h>
92 
93 #define aud_create_widgets(b, w, a) aud_create_widgets_with_domain (b, w, a, \
94  PACKAGE)
95 
96 #endif
97 
98 #undef AUD_API_NAME
99 #undef AUD_API_SYMBOL
100 
101 #endif
102 
103 #ifdef AUD_API_DECLARE
104 
105 #define AUD_API_NAME MiscAPI
106 #define AUD_API_SYMBOL misc_api
107 
108 #include "api-define-begin.h"
109 #include "misc-api.h"
110 #include "api-define-end.h"
111 
112 #include "api-declare-begin.h"
113 #include "misc-api.h"
114 #include "api-declare-end.h"
115 
116 #undef AUD_API_NAME
117 #undef AUD_API_SYMBOL
118 
119 #endif