summaryrefslogtreecommitdiffhomepage
path: root/mixguile/mixguile.h
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-08-22 00:42:13 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-08-22 00:42:13 +0000
commit61a86ec81a14231915b2aeb5706dca13bf897ca2 (patch)
treeede5022a57a1bb57a576f9845ee48a6c18012eee /mixguile/mixguile.h
parent24a852d8a28cd404d3afd43786cfef012a03d6f3 (diff)
downloadmdk-61a86ec81a14231915b2aeb5706dca13bf897ca2.tar.gz
mdk-61a86ec81a14231915b2aeb5706dca13bf897ca2.tar.bz2
mixguile: first version
Diffstat (limited to 'mixguile/mixguile.h')
-rw-r--r--mixguile/mixguile.h22
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 */