From 97b0adfda17f4fc2300f020d4ab175d06eb7fe8e Mon Sep 17 00:00:00 2001 From: Martin Molnar Date: Mon, 7 Jul 2008 18:48:05 +0200 Subject: [PATCH] Added my frsh files --- frsh/frsh_contract.h | 11 +++++++++++ frsh/frsh_resource.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 frsh/frsh_contract.h create mode 100644 frsh/frsh_resource.h diff --git a/frsh/frsh_contract.h b/frsh/frsh_contract.h new file mode 100644 index 0000000..90ac9c0 --- /dev/null +++ b/frsh/frsh_contract.h @@ -0,0 +1,11 @@ +/** + * \file frsh_contract.h + * + */ + +#ifndef _FRSH_CONTRACT_H +#define _FRSH_CONTRACT_H + + + +#endif /* _FRSH_CONTRACT_H */ diff --git a/frsh/frsh_resource.h b/frsh/frsh_resource.h new file mode 100644 index 0000000..02d2e2d --- /dev/null +++ b/frsh/frsh_resource.h @@ -0,0 +1,29 @@ +/** + * \file frsh_resource.h + * + * Contains definition of resource and functions to + * register/unregister resource + * + */ + +#ifndef _FRSH_RESOURCE_H +#define _FRSH_RESOURCE_H + +typedef struct frsh_resource_id { + unsigned int type; /* cpu, wlan */ + unsigned int unit; /* 0, 1, 2 */ +} frsh_resource_id_t; + +typedef struct frsh_resource { + frsh_resource_id_t id; + frsh_contract_ops_t *contract_ops; + void *fna_ops; +} frsh_resource_t; + +/* Resource descriptor + * ( Yes , we could just use frsh_resource_t* but in case of changes + * in API ..) + **/ +typedef frsh_resource_t* frsh_resource_d_t; + +#endif /* _FRSH_RESOURCE_H */ -- 2.39.2