Integrating enum and struct in one method call; fixing minor bugs
[iot2.git] / config / iotpolicy / testclasspolicy_advanced.pol
index ad432795ae6dc44c62f2978d0ffb374ae85c9088..aa269faacd5af5fb924c19c72ac818a88b43569a 100644 (file)
@@ -12,12 +12,16 @@ public interface TestClassInterface {
        public Struct handleStructComplex(int in, char c, Struct str);
        public List<Struct> handleStructComplex2(int in, char c, Struct str[]);
 
+       public Enum[] handleEnumStruct(Enum en[], List<Struct> str, char c);
+
        public void registerCallback(CallBackInterface _cb);
        public void registerCallbackArray(CallBackInterface _cb[]);
        public void registerCallbackList(List<CallBackInterface> _cb);
        public void registerCallbackComplex(int in, List<CallBackInterface> _cb, double db);
        public int callBack();
 
+       public Enum[] handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterface> _cb);
+
        capability EnumsStructs {
                description = "All the set methods";
 
@@ -32,6 +36,9 @@ public interface TestClassInterface {
                method = "handleStructList(List<Struct> str)";
                method = "handleStructComplex(int in, char c, Struct str)";
                method = "handleStructComplex2(int in, char c, Struct str[])";
+
+               method = "handleEnumStruct(Enum en[], List<Struct> str, char c)";
+               method = "handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterface> _cb)";
        }
 
        capability Callbacks {