Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/tools/audiofile/aupvlist.h
7857 views
1
/*
2
Audio File Library
3
Copyright (C) 1998-2000, Michael Pruett <[email protected]>
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the
17
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301 USA
19
*/
20
21
/*
22
aupvlist.h
23
24
This file contains the interface to the parameter value list data
25
structures and routines.
26
*/
27
28
#ifndef AUPVLIST_H
29
#define AUPVLIST_H
30
31
#ifdef __cplusplus
32
extern "C" {
33
#endif
34
35
#if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)
36
#define AFAPI __attribute__((visibility("default")))
37
#else
38
#define AFAPI
39
#endif
40
41
enum
42
{
43
AU_PVTYPE_LONG = 1,
44
AU_PVTYPE_DOUBLE = 2,
45
AU_PVTYPE_PTR = 3
46
};
47
48
typedef struct _AUpvlist *AUpvlist;
49
50
#define AU_NULL_PVLIST ((struct _AUpvlist *) 0)
51
52
AFAPI AUpvlist AUpvnew (int maxItems);
53
AFAPI int AUpvgetmaxitems (AUpvlist);
54
AFAPI int AUpvfree (AUpvlist);
55
AFAPI int AUpvsetparam (AUpvlist, int item, int param);
56
AFAPI int AUpvsetvaltype (AUpvlist, int item, int type);
57
AFAPI int AUpvsetval (AUpvlist, int item, void *val);
58
AFAPI int AUpvgetparam (AUpvlist, int item, int *param);
59
AFAPI int AUpvgetvaltype (AUpvlist, int item, int *type);
60
AFAPI int AUpvgetval (AUpvlist, int item, void *val);
61
62
#undef AFAPI
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif /* AUPVLIST_H */
69
70