Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1818 → Rev 1819

/trunk/kernel/generic/include/sysinfo/sysinfo.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
34,31 → 34,27
 
#include <arch/types.h>
 
typedef union sysinfo_item_val
{
typedef union sysinfo_item_val {
unative_t val;
void *fn;
}sysinfo_item_val_t;
} sysinfo_item_val_t;
 
typedef struct sysinfo_item
{
typedef struct sysinfo_item {
char *name;
union
{
union {
unative_t val;
void *fn;
}val;
} val;
 
union
{
union {
struct sysinfo_item *table;
void *fn;
}subinfo;
} subinfo;
 
struct sysinfo_item *next;
int val_type;
int subinfo_type;
}sysinfo_item_t;
} sysinfo_item_t;
 
#define SYSINFO_VAL_VAL 0
#define SYSINFO_VAL_FUNCTION 1
72,11 → 68,10
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;
} sysinfo_rettype_t;
 
void sysinfo_set_item_val(const char *name,sysinfo_item_t **root,unative_t val);
void sysinfo_dump(sysinfo_item_t **root,int depth);
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);
 
 
 
/** @}
/** @}
*/