Mark all TEEC APIs as deprecated since Tizen 6.5 88/253488/3 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen_unified_toolchain accepted/tizen_unified_x_asan tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.114521 accepted/tizen/7.0/unified/20221110.062839 accepted/tizen/7.0/unified/hotfix/20221116.110301 accepted/tizen/8.0/unified/20231005.094345 accepted/tizen/unified/20210219.040915 accepted/tizen/unified/toolchain/20240311.064840 accepted/tizen/unified/x/asan/20240415.123337 submit/tizen/20210217.173827 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorDariusz Michaluk <d.michaluk@samsung.com>
Thu, 11 Feb 2021 11:41:13 +0000 (12:41 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Thu, 18 Feb 2021 10:41:47 +0000 (11:41 +0100)
Change-Id: I4fcda20a840f33ab824ff71f4d82ec4745f892bd

src/teec/TeecContext.h
src/teec/TeecManager.h
src/teec/TeecSession.h
src/teec/TeecSharedMemory.h
src/teec/TeecTranslations.cc
src/teec/TeecTranslations.h
web/widl/tizen/libteec.widl

index 2e175eb..2d5b6c8 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017-2018 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -27,8 +27,9 @@
 
 #include <unordered_map>
 #include <string>
-#include <tee_client_api.h>
 
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#include <tee_client_api.h>
 
 namespace extension {
 namespace libteec {
index c7cc768..e9065d6 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -27,6 +27,8 @@
 #include <string>
 #include <memory>
 #include <mutex>
+
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #include <tee_client_api.h>
 
 #include "TeecContext.h"
index 141c427..efde4c6 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -24,6 +24,8 @@
 
 #include <string>
 #include <memory>
+
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #include <tee_client_api.h>
 
 namespace extension {
index 9af881c..9b8da14 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -24,6 +24,8 @@
 
 #include <memory>
 #include <vector>
+
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #include <tee_client_api.h>
 
 namespace extension {
index e6316cb..ae4c245 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -23,6 +23,8 @@
 #include "TeecManager.h"
 #include "TeecContext.h"
 #include "TeecSharedMemory.h"
+
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #include <tee_client_api.h>
 
 #define CASE_RESULT_TO_STRING(x) case x: return #x
index c8b3b3b..12c4390 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
@@ -26,7 +26,9 @@
 
 #include "TeecTempMemoryAllocator.h"
 
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #include <tee_client_api.h>
+
 #include <string>
 
 #include <common/picojson.h>
index ef76562..e0d73a6 100644 (file)
@@ -29,6 +29,7 @@ module LibTeec {
    * </ul>
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   enum TeecLoginMethod {
@@ -48,6 +49,7 @@ module LibTeec {
    * </ul>
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   enum TeecValueType {
@@ -66,6 +68,7 @@ module LibTeec {
    * </ul>
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   enum TeecTempMemoryType {
@@ -85,6 +88,7 @@ module LibTeec {
    * </ul>
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   enum TeecRegisteredMemoryType {
@@ -104,6 +108,7 @@ module LibTeec {
    * </ul>
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   enum TeecSharedMemoryFlags {
@@ -118,6 +123,7 @@ module LibTeec {
    * Example UUID strig representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    */
   typedef DOMString TeecUuid;
 
@@ -125,6 +131,7 @@ module LibTeec {
    * \brief Background process id.
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    */
   typedef unsigned long TeecTaskId;
 
@@ -132,6 +139,7 @@ module LibTeec {
    * \brief The LibTeecObject interface gives access to the LibTeec API from the <em>tizen.teec</em> object.
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   [NoInterfaceObject] interface LibTeecManagerObject {
@@ -145,6 +153,7 @@ module LibTeec {
    * Once a context object is obtained, it is possible to open a session to Trusted Application (TA) .
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   [NoInterfaceObject] interface LibTeecManager {
@@ -153,6 +162,7 @@ module LibTeec {
      * \brief Get TEE context by name.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -182,6 +192,9 @@ module LibTeec {
   /**
    * \brief This type denotes a TEE Context, the main logical container linking a Client Application with a particular TEE.
    *
+   * \version 4.0
+   * \deprecated Deprecated since 6.5.
+   *
    */
   [NoInterfaceObject] interface TeecContext {
     /**
@@ -195,6 +208,7 @@ module LibTeec {
      * </ul>
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -248,6 +262,7 @@ module LibTeec {
      * \brief Revoke last operation identified by id.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -296,6 +311,7 @@ module LibTeec {
      * Allocate shared memory.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -327,6 +343,7 @@ module LibTeec {
      * Register shared memory.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -359,6 +376,7 @@ module LibTeec {
      * Release shared memory, previously allocated or registered.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -389,12 +407,16 @@ module LibTeec {
   /**
    * \brief This type denotes a TEE Session, the logical link between Client Application and a particular Trusted Application.
    *
+   * \version 4.0
+   * \deprecated Deprecated since 6.5.
+   *
    */
   [NoInterfaceObject] interface TeecSession {
     /**
      * \brief Close session with TA.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -440,6 +462,7 @@ module LibTeec {
      * </ul>
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \privilegelevel partner
      * \privilege http://tizen.org/privilege/tee.client
@@ -507,6 +530,7 @@ module LibTeec {
    * <em>allocateSharedMemory</em> or <em>registerSharedMemory</em>
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   [NoInterfaceObject] interface TeecSharedMemory {
@@ -514,6 +538,7 @@ module LibTeec {
      * \brief Size of this shared memory block.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     readonly attribute unsigned long long size;
@@ -522,6 +547,7 @@ module LibTeec {
      * \brief Convenient method to set some bytes in shared memory.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \param data sequence of bytes (buffer size is data.length)
      * \param offset offset in shared memory to start writing
@@ -535,6 +561,7 @@ module LibTeec {
      * \brief Convenient method to get some bytes from shared memory.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \param data buffer for bytes (buffer size is data.length)
      * \param offset offset in shared memory to start reading
@@ -549,6 +576,7 @@ module LibTeec {
    * \brief Abstract parameter type.
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   [NoInterfaceObject] interface TeecParameter {
@@ -557,6 +585,7 @@ module LibTeec {
      * This can be one of TeecValueType, TeecTempMemoryType, TeecRegisteredMemoryType
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute DOMString type;
@@ -567,6 +596,7 @@ module LibTeec {
    * \brief Registered memory parameter.
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   interface TeecRegisteredMemory : TeecParameter {
@@ -574,6 +604,7 @@ module LibTeec {
      * \brief Referred shared memory.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute TeecSharedMemory shm;
@@ -582,6 +613,7 @@ module LibTeec {
      * \brief Offset in shared memory (start of accessed block).
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute unsigned long long offset;
@@ -590,6 +622,7 @@ module LibTeec {
      * \brief Size of block in shared memory (length of the block).
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute unsigned long long size;
@@ -600,6 +633,7 @@ module LibTeec {
    * \brief Temporary memory parameter.
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   interface TeecTempMemory : TeecParameter {
@@ -607,6 +641,7 @@ module LibTeec {
      * \brief Local memory block.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute byte[] mem;
@@ -617,6 +652,7 @@ module LibTeec {
    * \brief Value parameter.
    *
    * \version 4.0
+   * \deprecated Deprecated since 6.5.
    *
    */
   interface TeecValue : TeecParameter {
@@ -624,6 +660,7 @@ module LibTeec {
      * \brief Integer number to be delivered.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute long a;
@@ -631,6 +668,7 @@ module LibTeec {
      * \brief Integer number to be delivered.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      */
     attribute long b;
@@ -639,6 +677,7 @@ module LibTeec {
     /**
      * \brief The success callback to be invoked when session was opened.
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      */
   [Callback=FunctionOnly, NoInterfaceObject]
   interface TeecOpenSuccessCallback {
@@ -646,6 +685,7 @@ module LibTeec {
      * \brief Called when the session is opened successfully.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \param session <em>TeecSession</em> object
      *
@@ -656,6 +696,7 @@ module LibTeec {
     /**
      * \brief The success callback to be invoked when command performed on TA is finished.
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      */
   [Callback=FunctionOnly, NoInterfaceObject]
   interface TeecCommandSuccessCallback {
@@ -663,6 +704,7 @@ module LibTeec {
      * \brief Called when the command is done successfully.
      *
      * \version 4.0
+     * \deprecated Deprecated since 6.5.
      *
      * \param params array of <em>TeecParam</em> objects
      *