diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-08-22 00:42:13 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-08-22 00:42:13 +0000 |
commit | 7ec295f319608ec045e73877ff8727a0e25722c1 (patch) | |
tree | 7bbb2199b0dd0390b11a938e441f30b654b8a55e /mixguile/mixguile.h | |
parent | ab4c50de9a9c29b215476e842160130a14a76302 (diff) | |
download | mdk-7ec295f319608ec045e73877ff8727a0e25722c1.tar.gz mdk-7ec295f319608ec045e73877ff8727a0e25722c1.tar.bz2 |
mixguile: first version
Diffstat (limited to 'mixguile/mixguile.h')
-rw-r--r-- | mixguile/mixguile.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/mixguile/mixguile.h b/mixguile/mixguile.h index 319eb36..8897d29 100644 --- a/mixguile/mixguile.h +++ b/mixguile/mixguile.h @@ -1,7 +1,7 @@ /* -*-c-*- ---------------- mixguile.h : * Interface to the mixguile interpreter. * ------------------------------------------------------------------ - * Last change: Time-stamp: <01/08/21 02:26:18 jao> + * Last change: Time-stamp: <01/08/21 23:48:15 jao> * ------------------------------------------------------------------ * Copyright (C) 2001 Free Software Foundation, Inc. * @@ -26,8 +26,8 @@ #define MIXGUILE_H #include <mixlib/mix.h> +#include <mixlib/mix_vm_command.h> #include <guile/gh.h> -#include "mixguile_cmd_dispatcher.h" /* the main function type */ typedef void (*main_func_t) (int argc, char *argv[]); @@ -39,10 +39,24 @@ typedef void (*main_func_t) (int argc, char *argv[]); extern void mixguile_init (int argc, char *argv[], main_func_t main_fun); -/* access the mixguile comand dispatcher */ -extern mixguile_cmd_dispatcher_t * +/* set the command dispatcher */ +extern void +mixguile_set_cmd_dispatcher (mix_vm_cmd_dispatcher_t *dis); + +/* enter the guile repl */ +extern void +mixguile_enter_repl (int argc, char *argv[]); + +/* access the comand dispatcher */ +extern mix_vm_cmd_dispatcher_t * mixguile_get_cmd_dispatcher (void); +/* execute a string or file using the guile interpreter */ +extern void +mixguile_interpret_file (const gchar *path); + +extern void +mixguile_interpret_command (const gchar *command); #endif /* MIXGUILE_H */ |