summaryrefslogtreecommitdiff
path: root/com32/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-12-13 14:46:04 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-12-13 14:46:04 -0800
commit5a78559e2fdfe0b6c313e37720eddc6c2d57614d (patch)
treeb9855149c5baeb6a8f3fc9fb0219a924e67a797b /com32/include
parent29c9268b8f925bf27ffbb5ea2ec61fdc2dfae236 (diff)
downloadsyslinux-5a78559e2fdfe0b6c313e37720eddc6c2d57614d.tar.gz
Library routines for manipulating ADV data
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/syslinux/adv.h4
-rw-r--r--com32/include/syslinux/advconst.h43
2 files changed, 47 insertions, 0 deletions
diff --git a/com32/include/syslinux/adv.h b/com32/include/syslinux/adv.h
index 9af80ba0..a31712bb 100644
--- a/com32/include/syslinux/adv.h
+++ b/com32/include/syslinux/adv.h
@@ -34,6 +34,7 @@
#include <klibc/extern.h>
#include <stddef.h>
+#include <syslinux/advconst.h>
__extern void *__syslinux_adv_ptr;
__extern size_t __syslinux_adv_size;
@@ -50,4 +51,7 @@ static inline size_t syslinux_adv_size(void)
__extern int syslinux_adv_write(void);
+__extern int syslinux_setadv(int, size_t, const void *);
+__extern const void *syslinux_getadv(int, size_t *);
+
#endif /* _SYSLINUX_ADV_H */
diff --git a/com32/include/syslinux/advconst.h b/com32/include/syslinux/advconst.h
new file mode 100644
index 00000000..f9d55aac
--- /dev/null
+++ b/com32/include/syslinux/advconst.h
@@ -0,0 +1,43 @@
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2007 H. Peter Anvin - All Rights Reserved
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom
+ * the Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall
+ * be included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * ----------------------------------------------------------------------- */
+
+/*
+ * syslinux/advconst.h
+ *
+ * ADV defined constants
+ *
+ * Defined in a separate file so it can be used by non-COM32 code.
+ * Some of these constants are also defined in adv.inc, they better match...
+ */
+
+#ifndef _SYSLINUX_ADVCONST_H
+#define _SYSLINUX_ADVCONST_H
+
+#define ADV_END 0
+#define ADV_BOOTONCE 1
+
+#endif /* _SYSLINUX_ADVCONST_H */