#ifndef EXTERNAL_H #define EXTERNAL_H void ext_init (void); void ext_quit (void); gboolean exists_temp_filename (const GString* name); GString* get_temp_filename (gchar* constname); GPid spawn_external(const GString* cmdline); /* FIXME: find something better than this: * ext_pidfiles is a shared pid list used by * ext_* functions. */ static gchar* ext_pidfiles[]={"midiplayer.pid","csoundplayer.pid"}; /* 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