projects
/
profile
/
ivi
/
murphy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7e900
)
resource: add mrp_zone_mask_t
author
Janos Kovacs
<jankovac503@gmail.com>
Sat, 15 Jun 2013 20:16:43 +0000
(23:16 +0300)
committer
Krisztian Litkey
<krisztian.litkey@intel.com>
Mon, 8 Jul 2013 14:41:39 +0000
(17:41 +0300)
src/resource/data-types.h
patch
|
blob
|
history
diff --git
a/src/resource/data-types.h
b/src/resource/data-types.h
index
e2e296f
..
7a347a0
100644
(file)
--- a/
src/resource/data-types.h
+++ b/
src/resource/data-types.h
@@
-35,7
+35,12
@@
#include <murphy-db/mqi-types.h>
+/*
+ * Remember: this should be smaller than
+ * sizeof(mrp_zone_mask_t) * 8
+ */
#define MRP_ZONE_MAX 8
+#define MRP_ZONE_MASK (((mrp_zone_mask_t)1 << MRP_ZONE_MAX) - 1)
#define MRP_KEY_STAMP_BITS 27
#define MRP_KEY_STATE_BITS 1
@@
-73,6
+78,7
@@
typedef struct mrp_resource_setref_s mrp_resource_setref_t;
typedef uint32_t mrp_resource_mask_t;
typedef uint32_t mrp_attribute_mask_t;
+typedef uint32_t mrp_zone_mask_t;
enum mrp_resource_state_e {