aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller/syslinux.h
diff options
context:
space:
mode:
authorAlek Du <alek.du@intel.com>2010-05-19 09:39:57 +0800
committerH. Peter Anvin <hpa@zytor.com>2010-05-20 19:57:46 -0700
commite4fc443f9b70f188963ff33e0a16ccb72a553540 (patch)
tree5abf92a66a5a741e61375478ae41bb3383dcec04 /libinstaller/syslinux.h
parent38eb0724824139a81342e3f676910187bc57ba9d (diff)
downloadsyslinux-e4fc443f9b70f188963ff33e0a16ccb72a553540.tar.gz
syslinux-e4fc443f9b70f188963ff33e0a16ccb72a553540.tar.xz
syslinux-e4fc443f9b70f188963ff33e0a16ccb72a553540.zip
unify common parts of extlinux and syslinux installer
Thus we can share same command line options and reduce a lot of dup code... Seems like a big patch, but the changes are quite safe, no much logical change. Signed-off-by: Alek Du <alek.du@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'libinstaller/syslinux.h')
-rw-r--r--libinstaller/syslinux.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/libinstaller/syslinux.h b/libinstaller/syslinux.h
index 8ed1edbe..8d0212c8 100644
--- a/libinstaller/syslinux.h
+++ b/libinstaller/syslinux.h
@@ -15,6 +15,7 @@
#include <inttypes.h>
#include "advconst.h"
+#include "setadv.h"
/* The standard boot sector and ldlinux image */
extern unsigned char syslinux_bootsect[];
@@ -43,13 +44,4 @@ const char *syslinux_check_bootsect(const void *bs);
int syslinux_patch(const uint32_t * sectors, int nsectors,
int stupid, int raid_mode);
-/* ADV information */
-#define ADV_SIZE 512 /* Total size */
-#define ADV_LEN (ADV_SIZE-3*4) /* Usable data size */
-extern unsigned char syslinux_adv[2 * ADV_SIZE];
-
-int syslinux_setadv(int tag, size_t size, const void *data);
-void syslinux_reset_adv(unsigned char *advbuf);
-int syslinux_validate_adv(unsigned char *advbuf);
-
#endif