aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/dmi.c
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-15 21:51:46 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-15 21:58:47 +0100
commit997985d79e5813e8a33e82fb0cc0c0f08cf2c55d (patch)
tree075ba6a5c1abceb938626430743e6de6e2cbc4fe /com32/sysdump/dmi.c
parent3905382158cc8c5c40f71e1b33f1802341838bca (diff)
downloadsyslinux-997985d79e5813e8a33e82fb0cc0c0f08cf2c55d.tar.gz
syslinux-997985d79e5813e8a33e82fb0cc0c0f08cf2c55d.tar.xz
syslinux-997985d79e5813e8a33e82fb0cc0c0f08cf2c55d.zip
libupload: New library to manage uploads
This commit creates a library to upload content via 3 backends (srec/ymodem/tftp). Code came from sysdump and got librarized for being used more easily by more other com32 modules.
Diffstat (limited to 'com32/sysdump/dmi.c')
-rw-r--r--com32/sysdump/dmi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/sysdump/dmi.c b/com32/sysdump/dmi.c
index be4cce46..64fcffb7 100644
--- a/com32/sysdump/dmi.c
+++ b/com32/sysdump/dmi.c
@@ -6,7 +6,7 @@
#include <string.h>
#include <stdlib.h>
#include "sysdump.h"
-#include "backend.h"
+#include "../libupload/upload_backend.h"
struct dmi_header {
char signature[5];
@@ -60,7 +60,7 @@ static bool is_smbios(size_t dptr)
is_old_dmi(dptr+16);
}
-static void dump_smbios(struct backend *be, size_t dptr)
+static void dump_smbios(struct upload_backend *be, size_t dptr)
{
const struct smbios_header *smb = (void *)dptr;
struct smbios_header smx = *smb;
@@ -82,7 +82,7 @@ static void dump_smbios(struct backend *be, size_t dptr)
write_data(be, (const void *)smb->dmi.tbladdr, smb->dmi.tbllen);
}
-static void dump_old_dmi(struct backend *be, size_t dptr)
+static void dump_old_dmi(struct upload_backend *be, size_t dptr)
{
const struct dmi_header *dmi = (void *)dptr;
struct fake {
@@ -108,7 +108,7 @@ static void dump_old_dmi(struct backend *be, size_t dptr)
write_data(be, (const void *)dmi->tbladdr, dmi->tbllen);
}
-void dump_dmi(struct backend *be)
+void dump_dmi(struct upload_backend *be)
{
size_t dptr;