summaryrefslogtreecommitdiff
path: root/src/external.h
blob: f8d522021433bf042c381bbef7e7de05850be95b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef EXTERNAL_H
#define EXTERNAL_H

void ext_init (void);
void ext_quit (void);
/*gboolean exists_temp_filename (const gchar* name);*/
gchar* get_temp_filename (const gchar* name);
GPid spawn_external(const GString* cmdline);

/* ext_pidfiles is a shared pid list used by ext_* functions.*/
static gchar* ext_pidfiles[] = {"midiplayer.pid", "csoundplayer.pid", NULL};

/* GPID_UNREF contains the default value for an unreferenced GPid*/
#ifdef G_OS_WIN32
static const GPid GPID_UNREF = NULL;
#define GPID_UNREF_VALUE (NULL)
#else
static const GPid GPID_UNREF = -1;
#define GPID_UNREF_VALUE (-1)
#endif

/* define your externals here:
 * these are indexes of ext_pifiles.
 * functions ext_* cand reach desired pid filename
 * with gchar* filename = ext_pifiles[EXT_MYAPP];
 */
//#define EXT_MIDI 0
//#define EXT_CSOUND 1

#endif