missing commit in generator.h
[galan.git] / include / gencomp.h
blob0c9927c8a62b61d1b4d0ca759e4ad2b3da2c1ea5
1 /* gAlan - Graphical Audio Language
2 * Copyright (C) 1999 Tony Garnock-Jones
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef GenComp_H
20 #define GenComp_H
22 #define PIXMAPDIRIFY(filename) \
23 (SITE_PKGDATA_DIR G_DIR_SEPARATOR_S "pixmaps" G_DIR_SEPARATOR_S filename)
25 typedef struct GenCompData GenCompData;
26 typedef struct GenCompInitData GenCompInitData;
27 typedef void (*PropertiesCallback)(Component *c, Generator *g);
29 struct GenCompData {
30 Generator *g;
31 GdkPixmap *icon;
32 PropertiesCallback propgen;
35 struct GenCompInitData {
36 GeneratorClass *k;
37 char *iconpath;
38 PropertiesCallback propgen;
41 extern ComponentClass GeneratorComponentClass;
42 extern void gencomp_register_generatorclass(GeneratorClass *k, gboolean prefer,
43 char *menupath, char *iconpath,
44 PropertiesCallback propgen);
46 extern void init_gencomp(void);
47 extern void done_gencomp(void);
49 #endif