summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Revyakin <vadimr@intel.com>2006-12-20 14:19:08 +0000
committerVadim Revyakin <vadimr@intel.com>2006-12-20 14:19:08 +0000
commita828e310e363782134c869dd1768553f111e5c38 (patch)
treed4c951bea17b24fe669812bfdb06127a154943f6
parentfcd15893784fd8b56c1431169d1c1c791f8bb669 (diff)
downloadwsmancli-a828e310e363782134c869dd1768553f111e5c38.tar.gz
wsmancli-a828e310e363782134c869dd1768553f111e5c38.tar.xz
wsmancli-a828e310e363782134c869dd1768553f111e5c38.zip
min/max elements in dynamic arrays
-rw-r--r--examples/create_resource.c2
-rw-r--r--examples/serialize.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/create_resource.c b/examples/create_resource.c
index 9893cc7..905b8e2 100644
--- a/examples/create_resource.c
+++ b/examples/create_resource.c
@@ -79,7 +79,7 @@ SER_STR("Caption", 1),
SER_STR("InstanceID", 1),
SER_STR("PolicyName", 1),
SER_UINT32("PolicyPrecedence", 1 ),
-SER_DYN_ARRAY("Handles", uint32),
+SER_DYN_ARRAY("Handles", 1, 10, uint32),
SER_BOOL("DefaultTest", 1),
SER_END_ITEMS("EXL_ExamplePolicy", EXL_ExamplePolicy);
diff --git a/examples/serialize.c b/examples/serialize.c
index d276486..e43ba35 100644
--- a/examples/serialize.c
+++ b/examples/serialize.c
@@ -427,8 +427,8 @@ Sample sample = { "Moscow", {6, myshorts}, {2, foos}, 99};
SER_START_ITEMS("Sample", Sample)
SER_STR("city", 1),
-SER_DYN_ARRAY("shorts", uint16),
-SER_DYN_ARRAY("foos", Foo),
+SER_DYN_ARRAY("shorts", 0, 1000, uint16),
+SER_DYN_ARRAY("foos", 0, 1000, Foo),
SER_UINT16("tag", 1),
SER_END_ITEMS("Sample", Sample);