diff options
Diffstat (limited to 'pd/src/m_glob.c')
-rw-r--r-- | pd/src/m_glob.c | 50 |
1 files changed, 31 insertions, 19 deletions
diff --git a/pd/src/m_glob.c b/pd/src/m_glob.c index 6c91feef..12cfb9b6 100644 --- a/pd/src/m_glob.c +++ b/pd/src/m_glob.c @@ -25,7 +25,11 @@ void glob_midi_properties(t_pd *dummy, t_floatarg flongform); void glob_midi_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv); void glob_start_path_dialog(t_pd *dummy, t_floatarg flongform); void glob_path_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv); +void glob_start_startup_dialog(t_pd *dummy, t_floatarg flongform); +void glob_startup_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv); void glob_ping(t_pd *dummy); +void glob_watchdog(t_pd *dummy); +void glob_savepreferences(t_pd *dummy); void alsa_resync( void); @@ -49,11 +53,11 @@ void max_default(t_pd *x, t_symbol *s, int argc, t_atom *argv) int i; char str[80]; startpost("%s: unknown message %s ", class_getname(pd_class(x)), - s->s_name); + s->s_name); for (i = 0; i < argc; i++) { - atom_string(argv+i, str, 80); - poststring(str); + atom_string(argv+i, str, 80); + poststring(str); } endpost(); } @@ -61,44 +65,52 @@ void max_default(t_pd *x, t_symbol *s, int argc, t_atom *argv) void glob_init(void) { maxclass = class_new(gensym("max"), 0, 0, sizeof(t_pd), - CLASS_DEFAULT, A_NULL); + CLASS_DEFAULT, A_NULL); class_addanything(maxclass, max_default); pd_bind(&maxclass, gensym("max")); glob_pdobject = class_new(gensym("pd"), 0, 0, sizeof(t_pd), - CLASS_DEFAULT, A_NULL); + CLASS_DEFAULT, A_NULL); class_addmethod(glob_pdobject, (t_method)glob_initfromgui, gensym("init"), - A_GIMME, 0); + A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_setfilename, gensym("filename"), - A_SYMBOL, A_SYMBOL, 0); + A_SYMBOL, A_SYMBOL, 0); class_addmethod(glob_pdobject, (t_method)glob_evalfile, gensym("open"), - A_SYMBOL, A_SYMBOL, 0); + A_SYMBOL, A_SYMBOL, 0); class_addmethod(glob_pdobject, (t_method)glob_quit, gensym("quit"), 0); class_addmethod(glob_pdobject, (t_method)glob_foo, gensym("foo"), A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_dsp, gensym("dsp"), A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_meters, gensym("meters"), - A_FLOAT, 0); + A_FLOAT, 0); class_addmethod(glob_pdobject, (t_method)glob_key, gensym("key"), A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_audiostatus, - gensym("audiostatus"), 0); + gensym("audiostatus"), 0); class_addmethod(glob_pdobject, (t_method)glob_finderror, - gensym("finderror"), 0); + gensym("finderror"), 0); class_addmethod(glob_pdobject, (t_method)glob_audio_properties, - gensym("audio-properties"), A_DEFFLOAT, 0); + gensym("audio-properties"), A_DEFFLOAT, 0); class_addmethod(glob_pdobject, (t_method)glob_audio_dialog, - gensym("audio-dialog"), A_GIMME, 0); + gensym("audio-dialog"), A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_audio_setapi, - gensym("audio-setapi"), A_FLOAT, 0); + gensym("audio-setapi"), A_FLOAT, 0); class_addmethod(glob_pdobject, (t_method)glob_midi_properties, - gensym("midi-properties"), A_DEFFLOAT, 0); + gensym("midi-properties"), A_DEFFLOAT, 0); class_addmethod(glob_pdobject, (t_method)glob_midi_dialog, - gensym("midi-dialog"), A_GIMME, 0); + gensym("midi-dialog"), A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_start_path_dialog, - gensym("start-path-dialog"), A_DEFFLOAT, 0); + gensym("start-path-dialog"), 0); class_addmethod(glob_pdobject, (t_method)glob_path_dialog, - gensym("path-dialog"), A_GIMME, 0); -#ifdef __linux__ + gensym("path-dialog"), A_GIMME, 0); + class_addmethod(glob_pdobject, (t_method)glob_start_startup_dialog, + gensym("start-startup-dialog"), 0); + class_addmethod(glob_pdobject, (t_method)glob_startup_dialog, + gensym("startup-dialog"), A_GIMME, 0); class_addmethod(glob_pdobject, (t_method)glob_ping, gensym("ping"), 0); + class_addmethod(glob_pdobject, (t_method)glob_savepreferences, + gensym("save-preferences"), 0); +#ifdef UNIX + class_addmethod(glob_pdobject, (t_method)glob_watchdog, + gensym("watchdog"), 0); #endif class_addanything(glob_pdobject, max_default); pd_bind(&glob_pdobject, gensym("pd")); |