summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-06-05 21:02:07 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-06-05 21:02:07 +0000
commitb4af47f908b9ad2346a9ccdf6fbea3c9b00e8661 (patch)
treee23e10770e32cd72f5cc6e7ff7510b74f8978ae2
parent2eb3cc670a082821b40d6456cf6c446fc98d474f (diff)
downloadmdk-b4af47f908b9ad2346a9ccdf6fbea3c9b00e8661.tar.gz
mdk-b4af47f908b9ad2346a9ccdf6fbea3c9b00e8661.tar.bz2
edit and compile commands added
-rw-r--r--mixlib/mix_vm_command.c14
-rw-r--r--mixlib/mix_vm_command.h6
2 files changed, 20 insertions, 0 deletions
diff --git a/mixlib/mix_vm_command.c b/mixlib/mix_vm_command.c
index 19c4695..52b2301 100644
--- a/mixlib/mix_vm_command.c
+++ b/mixlib/mix_vm_command.c
@@ -254,6 +254,20 @@ mix_vm_cmd_dispatcher_set_assembler (mix_vm_cmd_dispatcher_t *dis,
dis->assembler = (asm_tplt) ? g_strdup (asm_tplt) : NULL;
}
+const gchar *
+mix_vm_cmd_dispatcher_get_editor (const mix_vm_cmd_dispatcher_t *dis)
+{
+ g_return_val_if_fail (dis != NULL, NULL);
+ return dis->editor;
+}
+
+const gchar *
+mix_vm_cmd_dispatcher_get_assembler (const mix_vm_cmd_dispatcher_t *dis)
+{
+ g_return_val_if_fail (dis != NULL, NULL);
+ return dis->assembler;
+}
+
/* install hooks */
void
mix_vm_cmd_dispatcher_pre_hook (mix_vm_cmd_dispatcher_t *dis,
diff --git a/mixlib/mix_vm_command.h b/mixlib/mix_vm_command.h
index ad73064..3d51c73 100644
--- a/mixlib/mix_vm_command.h
+++ b/mixlib/mix_vm_command.h
@@ -109,6 +109,12 @@ extern void
mix_vm_cmd_dispatcher_set_assembler (mix_vm_cmd_dispatcher_t *dis,
const gchar *asm_tplt);
+extern const gchar *
+mix_vm_cmd_dispatcher_get_editor (const mix_vm_cmd_dispatcher_t *dis);
+
+extern const gchar *
+mix_vm_cmd_dispatcher_get_assembler (const mix_vm_cmd_dispatcher_t *dis);
+
/* dispatch a command */
extern gboolean /* TRUE if success, FALSE otherwise */
mix_vm_cmd_dispatcher_dispatch (mix_vm_cmd_dispatcher_t *dis,