Testing enum and callback combination
[iot2.git] / config / iotpolicy / testclasspolicy_advanced.pol
index c5fcfd27c26538ed25096d60fe63c94230042927..9867b232fd0e7bfc3dabee6415e100238bc2c869 100644 (file)
@@ -12,10 +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[] handleCallbackEnum(Enum en[], char c, List<CallBackInterface> _cb);
+
+       public Enum[] handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterface> _cb);
 
        capability EnumsStructs {
                description = "All the set methods";
@@ -31,6 +37,10 @@ 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 = "handleCallbackEnum(Enum en[], char c, List<CallBackInterface> _cb)";
+               method = "handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterface> _cb)";
        }
 
        capability Callbacks {
@@ -39,6 +49,7 @@ public interface TestClassInterface {
                method = "registerCallback(CallBackInterface _cb)";
                method = "registerCallbackArray(CallBackInterface _cb[])";
                method = "registerCallbackList(List<CallBackInterface> _cb)";
+               method = "registerCallbackComplex(int in, List<CallBackInterface> _cb, double db)";
                method = "callBack()";
        }