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
commite5f0b6efad459eb609672ea0ed4d3c896496f7a2 (patch)
treebbcb15a27ebf36ae577734f7151e73b8dd296a7e
parentabad7be2de0dae5713d22a09af277d51d593c6a1 (diff)
downloadmdk-e5f0b6efad459eb609672ea0ed4d3c896496f7a2.tar.gz
mdk-e5f0b6efad459eb609672ea0ed4d3c896496f7a2.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,