--- /dev/null
+/** Copyright (c) 2020 Samsung Electronics Co., Ltd.\r
+*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+*\r
+*/\r
+\r
+#ifndef CSHARP_COMPONENT_APPLICATION_WRAP\r
+#define CSHARP_COMPONENT_APPLICATION_WRAP\r
+#endif\r
+\r
+#include "common.h"\r
+#include <dali/dali.h>\r
+#include <dali/devel-api/adaptor-framework/component-application.h>\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+int argC = 1;\r
+char **argV = NULL;\r
+\r
+typedef void* (*CreateNativeSignalType)();\r
+CreateNativeSignalType callback;\r
+\r
+Dali::Any CreateNativeSignalCallbackWrapper()\r
+{\r
+ return callback();\r
+}\r
+\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ComponentApplication(int jarg1, char * jarg2, char * jarg3) {\r
+ void * jresult ;\r
+ int *arg1 = (int *) 0 ;\r
+ char ***arg2 ;\r
+ std::string *arg3 = 0 ;\r
+ Dali::ComponentApplication result;\r
+ {\r
+ int index = 0;\r
+ int length = 0;\r
+ char *retPtr;\r
+ char *nextPtr;\r
+ argC = jarg1;\r
+ argV = new char*[jarg1 + 1];\r
+\r
+ retPtr = strtok_r( jarg2, " ", &nextPtr);\r
+ if( retPtr )\r
+ {\r
+ length = strlen(retPtr);\r
+ }\r
+ argV[index] = new char[length + 1];\r
+ if( retPtr )\r
+ {\r
+ strncpy(argV[index], retPtr, length);\r
+ }\r
+ argV[index][length] = '\0';\r
+ index++;\r
+\r
+ while (index < jarg1)\r
+ {\r
+ length = 0;\r
+ retPtr = strtok_r(NULL, " ", &nextPtr);\r
+ if( retPtr )\r
+ {\r
+ length = strlen(retPtr);\r
+ }\r
+ argV[index] = new char[length + 1];\r
+ if( retPtr )\r
+ {\r
+ strncpy(argV[index], retPtr, length);\r
+ }\r
+ argV[index][length] = '\0';\r
+ index++;\r
+ }\r
+\r
+ argV[jarg1] = NULL;\r
+ argC = jarg1;\r
+\r
+ arg1 = &argC;\r
+ arg2 = &argV;\r
+ }\r
+\r
+ if (!jarg3) {\r
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);\r
+ return 0;\r
+ }\r
+ std::string arg3_str(jarg3);\r
+ arg3 = &arg3_str;\r
+ {\r
+ try {\r
+ result = Dali::ComponentApplication::New(arg1,arg2,(std::string const &)*arg3);\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
+ };\r
+ }\r
+ }\r
+ jresult = new Dali::ComponentApplication((const Dali::ComponentApplication &)result);\r
+\r
+ return jresult;\r
+}\r
+\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ComponentApplication_SWIG1(void * jarg1) {\r
+ void * jresult ;\r
+ Dali::ComponentApplication *arg1 = 0 ;\r
+ Dali::ComponentApplication *result = 0 ;\r
+\r
+ arg1 = (Dali::ComponentApplication *)jarg1;\r
+ if (!arg1) {\r
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::ComponentApplication const & type is null", 0);\r
+ return 0;\r
+ }\r
+ {\r
+ try {\r
+ result = (Dali::ComponentApplication *)new Dali::ComponentApplication((Dali::ComponentApplication const &)*arg1);\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
+ };\r
+ }\r
+ }\r
+ jresult = (void *)result;\r
+ return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_assign_ComponentApplication(void * jarg1, void * jarg2) {\r
+ void * jresult ;\r
+ Dali::ComponentApplication *arg1 = (Dali::ComponentApplication *) 0 ;\r
+ Dali::ComponentApplication *arg2 = 0 ;\r
+ Dali::ComponentApplication *result = 0 ;\r
+\r
+ arg1 = (Dali::ComponentApplication *)jarg1;\r
+ arg2 = (Dali::ComponentApplication *)jarg2;\r
+ if (!arg2) {\r
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::ComponentApplication const & type is null", 0);\r
+ return 0;\r
+ }\r
+ {\r
+ try {\r
+ result = (Dali::ComponentApplication *) &(arg1)->operator =((Dali::ComponentApplication const &)*arg2);\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
+ };\r
+ }\r
+ }\r
+ jresult = (void *)result;\r
+ return jresult;\r
+}\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ComponentApplication(void * jarg1) {\r
+ Dali::ComponentApplication *arg1 = (Dali::ComponentApplication *) 0 ;\r
+\r
+ arg1 = (Dali::ComponentApplication *)jarg1;\r
+ {\r
+ try {\r
+ delete arg1;\r
+ if( argV )\r
+ {\r
+ // free string data\r
+ for( int i=0; i < argC+1; i++)\r
+ {\r
+ delete [] argV[i];\r
+ }\r
+ delete [] argV;\r
+ }\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
+ };\r
+ }\r
+ }\r
+}\r
+\r
+SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_ComponentApplication_CreateNativeSignal(void * jarg1) {\r
+ void* jresult ;\r
+ Dali::ComponentApplication *arg1 = (Dali::ComponentApplication *) 0 ;\r
+ Dali::ComponentApplication::CreateSignalType *result = 0 ;\r
+\r
+ arg1 = (Dali::ComponentApplication *)jarg1;\r
+ {\r
+ try {\r
+ result = (Dali::ComponentApplication::CreateSignalType *) &(arg1)->CreateSignal();\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
+ };\r
+ } catch (Dali::DaliException e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
+ };\r
+ }\r
+ }\r
+\r
+ jresult = (void*)result;\r
+ return jresult;\r
+}\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ComponentApplication_CreateNativeSignal_Connect(void * jarg1, void * jarg2) {\r
+ Dali::ComponentApplication *arg1 = (Dali::ComponentApplication *) 0 ;\r
+ arg1 = (Dali::ComponentApplication *)jarg1;\r
+\r
+ callback = (CreateNativeSignalType) jarg2;\r
+ {\r
+ try {\r
+ (arg1)->CreateSignal().Connect(CreateNativeSignalCallbackWrapper);\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
+ };\r
+ } catch (Dali::DaliException e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
+ };\r
+ }\r
+ }\r
+}\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ComponentApplication_CreateNativeSignal_Disconnect(void * jarg1, void * jarg2) {\r
+ Dali::ComponentApplication *arg1 = (Dali::ComponentApplication *) 0 ;\r
+ arg1 = (Dali::ComponentApplication *)jarg1;\r
+\r
+ {\r
+ try {\r
+ (arg1)->CreateSignal().Disconnect(CreateNativeSignalCallbackWrapper);\r
+ } catch (std::out_of_range& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
+ };\r
+ } catch (std::exception& e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
+ };\r
+ } catch (Dali::DaliException e) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;\r
+ };\r
+ } catch (...) {\r
+ {\r
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
+ };\r
+ }\r
+ }\r
+}\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r