diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-10-31 10:24:41 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-10-31 10:24:41 +0000 |
commit | 24f10bb094c9831f4133d488d0af90dc2a83590f (patch) | |
tree | 86331f5b15e595497dd753b38f113b21ab56b563 /dmidecodebin.c | |
parent | 34ed409541219e8239a5826849ef36d8f4a05eb9 (diff) | |
download | python-dmidecode-24f10bb094c9831f4133d488d0af90dc2a83590f.tar.gz python-dmidecode-24f10bb094c9831f4133d488d0af90dc2a83590f.tar.xz python-dmidecode-24f10bb094c9831f4133d488d0af90dc2a83590f.zip |
Cleanup.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@96 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecodebin.c')
-rw-r--r-- | dmidecodebin.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/dmidecodebin.c b/dmidecodebin.c deleted file mode 100644 index 3b1a438..0000000 --- a/dmidecodebin.c +++ /dev/null @@ -1,39 +0,0 @@ -//. This file now produces the executable `dmidecode', and dynamically links -//. against libdmidecode.so. -#include <Python.h> - -#include <stdio.h> -#include <string.h> -#include <stdlib.h> -#include <unistd.h> - -#include "version.h" -#include "config.h" -#include "types.h" -#include "util.h" -#include "dmidecode.h" -#include "dmiopt.h" -#include "dmioem.h" - -#define EFI_NOT_FOUND (-1) -#define EFI_NO_SMBIOS (-2) - -#include "dmihelper.h" - -extern const char *dmi_dump(struct dmi_header *h, char *_); -//extern void dmi_decode(struct dmi_header *h, u16 ver, PyObject *pydata); -extern PyObject *dmi_decode(struct dmi_header *h, u16 ver); -extern int address_from_efi(size_t *address, char *_); -extern void to_dmi_header(struct dmi_header *h, u8 *data); -extern void dmi_table(u32 base, u16 len, u16 num, u16 ver, const char *devmem); -extern int smbios_decode(u8 *buf, const char *devmem, PyObject* pydata); -extern int legacy_decode(u8 *buf, const char *devmem, PyObject* pydata); -extern int submain(int argc, char * const argv[]); - -int main(int argc, char * const argv[]) { - char buffer[50000]; - bzero(buffer, 50000); - int r = submain(argc, argv); - printf("%s", buffer); - return r; -} |