summaryrefslogtreecommitdiffhomepage
path: root/mixguile/mixguile_cmd_dispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'mixguile/mixguile_cmd_dispatcher.h')
-rw-r--r--mixguile/mixguile_cmd_dispatcher.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/mixguile/mixguile_cmd_dispatcher.h b/mixguile/mixguile_cmd_dispatcher.h
index 5be1d13..4dba9d0 100644
--- a/mixguile/mixguile_cmd_dispatcher.h
+++ b/mixguile/mixguile_cmd_dispatcher.h
@@ -1,7 +1,7 @@
/* -*-c-*- ---------------- mixguile_cmd_dispatcher.h :
* Command dispatcher with guile support
* ------------------------------------------------------------------
- * Last change: Time-stamp: <01/08/21 02:24:45 jao>
+ * Last change: Time-stamp: <01/08/22 01:15:23 jao>
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
@@ -33,14 +33,32 @@ typedef struct mixguile_cmd_dispatcher_t mixguile_cmd_dispatcher_t;
/* create/destroy cmd dispatcher */
extern mixguile_cmd_dispatcher_t *
-mixguile_cmd_dispatcher_new (void);
+mixguile_cmd_dispatcher_new (mix_vm_cmd_dispatcher_t *dis);
extern void
mixguile_cmd_dispatcher_delete (mixguile_cmd_dispatcher_t *dis);
/* get the underlying vm dispatcher */
extern mix_vm_cmd_dispatcher_t *
-mixguile_cmd_dispatcher_get_vm_dispatcher (const mix_vm_cmd_dispatcher_t *disp);
+mixguile_cmd_dispatcher_get_vm_dispatcher (const
+ mixguile_cmd_dispatcher_t *disp);
+
+/* get the result string of last executed command */
+extern const gchar *
+mixguile_cmd_dispatcher_last_result (mixguile_cmd_dispatcher_t *disp);
+
+/* prepare dispatcher for repl */
+extern void
+mixguile_cmd_dispatcher_prepare (mixguile_cmd_dispatcher_t *dis);
+
+/* interpret commands from file or string */
+extern void
+mixguile_cmd_dispatcher_interpret_file (mixguile_cmd_dispatcher_t *dis,
+ const gchar *path);
+
+extern void
+mixguile_cmd_dispatcher_interpret_command (mixguile_cmd_dispatcher_t *dis,
+ const gchar *command);
#endif /* MIXGUILE_CMD_DISPATCHER_H */