blob: bab2e2c81aa1fd9f3a6ed5dc8d1146699d24a231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef CAT
#define CAT 1
#include <Python.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define MAXVAL 1024
typedef struct _dmi_codes_major {
const unsigned short code;
const char *id;
const char *desc;
} dmi_codes_major;
typedef struct _dmi_minor {
long id;
dmi_codes_major* major;
char *key;
char value[MAXVAL];
struct _dmi_minor* next;
} dmi_minor;
int catsprintf(char *buf, const char *format, ...);
dmi_minor* dmiAppendObject(long code, char const *key, const char *format, ...);
int dmiSetItem(PyObject* dict, const char *key, const char *format, ...);
#endif
|