summaryrefslogtreecommitdiff
path: root/com32/include
diff options
context:
space:
mode:
authorprofkhaos <profkhaos@Khaos-Phantom.(none)>2009-08-20 19:40:08 +0300
committerprofkhaos <profkhaos@Khaos-Phantom.(none)>2009-08-20 19:40:08 +0300
commit157b3a28a060a0bbfce0f047c8fa3712e0520207 (patch)
treeb657737d44b7000ed9f4c347cf2028317c1d1bbd /com32/include
parent97f408c190b315e3bc42d59a5f1fb9bd37afe9f4 (diff)
downloadsyslinux-157b3a28a060a0bbfce0f047c8fa3712e0520207.tar.gz
CLI with history and c32 smart loading
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/sys/exec.h13
-rw-r--r--com32/include/sys/module.h7
2 files changed, 20 insertions, 0 deletions
diff --git a/com32/include/sys/exec.h b/com32/include/sys/exec.h
index 31a1af2e..0cb33bce 100644
--- a/com32/include/sys/exec.h
+++ b/com32/include/sys/exec.h
@@ -20,6 +20,19 @@
#define EXEC_ROOT_NAME "_root_.c32"
/**
+ * spawn_load - Load a library module or executes an executable one
+ * @name the name of the library/executable to use, including the extension
+ * (e.g. 'sort.c32')
+ * @argv: a NULL-terminated vector of string arguments, starting with
+ * the program name.
+ *
+ * This procedure in essence loads takes the name of a module and checks to see what
+ * kind of module it is ( executable or library ), after which is performs the
+ * appropriate action, either spawning or simply loading the module into memory.
+ */
+extern int spawn_load(const char *name,const char **argv);
+
+/**
* exec_init - Initialize the dynamic execution environment.
*
* Among others, it initializes the module subsystem and loads the root
diff --git a/com32/include/sys/module.h b/com32/include/sys/module.h
index 368a4139..1d94c094 100644
--- a/com32/include/sys/module.h
+++ b/com32/include/sys/module.h
@@ -23,6 +23,13 @@
#define MODULE_NAME_SIZE 256
/*
+ * Some common information about what kind of modules we're dealing with
+ */
+#define UNKNOWN_MODULE -1
+#define EXEC_MODULE 0
+#define LIB_MODULE 1
+
+/*
* Initialization and finalization function signatures
*/