1 /*
2  * libInstPatch
3  * Copyright (C) 1999-2014 Element Green <element@elementsofsound.org>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public License
7  * as published by the Free Software Foundation; version 2.1
8  * of the License only.
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
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  * 02110-1301, USA or on the web at http://www.gnu.org.
19  */
20 #ifndef __IPATCH_SF2_PZONE_H__
21 #define __IPATCH_SF2_PZONE_H__
22 
23 #include <stdarg.h>
24 #include <glib.h>
25 #include <glib-object.h>
26 #include <libinstpatch/IpatchSF2Zone.h>
27 #include <libinstpatch/IpatchSF2Inst.h>
28 
29 /* forward type declarations */
30 
31 typedef struct _IpatchSF2PZone IpatchSF2PZone;
32 typedef struct _IpatchSF2PZoneClass IpatchSF2PZoneClass;
33 
34 #define IPATCH_TYPE_SF2_PZONE   (ipatch_sf2_pzone_get_type ())
35 #define IPATCH_SF2_PZONE(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST ((obj), IPATCH_TYPE_SF2_PZONE, \
37   IpatchSF2PZone))
38 #define IPATCH_SF2_PZONE_CLASS(klass) \
39   (G_TYPE_CHECK_CLASS_CAST ((klass), IPATCH_TYPE_SF2_PZONE, \
40   IpatchSF2PZoneClass))
41 #define IPATCH_IS_SF2_PZONE(obj) \
42   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IPATCH_TYPE_SF2_PZONE))
43 #define IPATCH_IS_SF2_PZONE_CLASS(klass) \
44   (G_TYPE_CHECK_CLASS_TYPE ((klass), IPATCH_TYPE_SF2_PZONE))
45 #define IPATCH_SF2_PZONE_GET_CLASS(obj) \
46   (G_TYPE_INSTANCE_GET_CLASS ((obj), IPATCH_TYPE_SF2_PZONE, \
47   IpatchSF2PZoneClass))
48 
49 /* SoundFont pzone item */
50 struct _IpatchSF2PZone
51 {
52     IpatchSF2Zone parent_instance;
53 };
54 
55 struct _IpatchSF2PZoneClass
56 {
57     IpatchSF2ZoneClass parent_class;
58 };
59 
60 GType ipatch_sf2_pzone_get_type(void);
61 IpatchSF2PZone *ipatch_sf2_pzone_new(void);
62 
63 IpatchSF2PZone *ipatch_sf2_pzone_first(IpatchIter *iter);
64 IpatchSF2PZone *ipatch_sf2_pzone_next(IpatchIter *iter);
65 
66 void ipatch_sf2_pzone_set_inst(IpatchSF2PZone *pzone, IpatchSF2Inst *inst);
67 IpatchSF2Inst *ipatch_sf2_pzone_get_inst(IpatchSF2PZone *pzone);
68 
69 #endif
70