diff options
Diffstat (limited to 'dmidecodemodule.c')
| -rw-r--r-- | dmidecodemodule.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/dmidecodemodule.c b/dmidecodemodule.c index 7590063..7ef9caf 100644 --- a/dmidecodemodule.c +++ b/dmidecodemodule.c @@ -1,38 +1,4 @@ -#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 "catsprintf.h" -#include "global.h" - -//http://docs.python.org/api/sequence.html#l2h-338 -// NeuralNuts: you usually use PySquence_Fast() combined with -// PySquence_Fast_GET_ITEM, but since you know you have a tuple, -// PySequence_ITEM or PyTuple_GET_ITEM will be fine. -// -// -extern void dmi_dump(struct dmi_header *h, const char *prefix); -extern void dmi_decode(struct dmi_header *h, u16 ver); -extern int address_from_efi(size_t *address); -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); -extern int legacy_decode(u8 *buf, const char *devmem); -extern void *mem_chunk(size_t base, size_t len, const char *devmem); +#include "dmidecodemodule.h" static PyObject* dmidecode_get(PyObject *self, PyObject *args) { PyObject *list = PyList_New(0); |
