34,23 → 34,19 |
|
#include <arch/types.h> |
|
typedef union sysinfo_item_val |
{ |
typedef union sysinfo_item_val { |
unative_t val; |
void *fn; |
}sysinfo_item_val_t; |
|
typedef struct sysinfo_item |
{ |
typedef struct sysinfo_item { |
char *name; |
union |
{ |
union { |
unative_t val; |
void *fn; |
}val; |
|
union |
{ |
union { |
struct sysinfo_item *table; |
void *fn; |
}subinfo; |
72,8 → 68,7 |
typedef unative_t (*sysinfo_val_fn_t)(sysinfo_item_t *root); |
typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname); |
|
typedef struct sysinfo_rettype |
{ |
typedef struct sysinfo_rettype { |
unative_t val; |
unative_t valid; |
}sysinfo_rettype_t; |
88,8 → 83,5 |
unative_t sys_sysinfo_valid(unative_t ptr,unative_t len); |
unative_t sys_sysinfo_value(unative_t ptr,unative_t len); |
|
|
|
/** @} |
*/ |
|