From 08d92c592293313ad6ad16e2740856980ffd8d81 Mon Sep 17 00:00:00 2001 From: Gunnar Andersson Date: Fri, 11 Aug 2023 13:15:37 +0200 Subject: [PATCH] Remove byteBuffer type (use array of bytes) It wasn't really implemented in several places anyway, but this removes some remaining references to this type. The byteBuffer type is superfluous since it can be represented by an array of uint8. It was at an earlier time also removed from the VSS project. Another alternative is the IFEX 'opaque' type. It was conceived to indicate that something in reality has structure but that it cannot (or is chosen not to) have a detailed represented in the IFEX description. An Opaque type is presumably also transferred as "just a bunch of bytes" in a computing system - only the name infers there is some additional meaning. Signed-off-by: Gunnar Andersson --- ifex/generators/DBus/dbus_types.py | 2 -- ifex/model/types.yml | 1 - ifex/templates/sds-bamm/sds-bamm-macros.tpl | 2 -- 3 files changed, 5 deletions(-) diff --git a/ifex/generators/DBus/dbus_types.py b/ifex/generators/DBus/dbus_types.py index 1c2ddf60..7114290f 100644 --- a/ifex/generators/DBus/dbus_types.py +++ b/ifex/generators/DBus/dbus_types.py @@ -56,8 +56,6 @@ "double": "d", "string": "s", "boolean": "b", - "byteBuffer": "ay", - # TODO: map/dict, set, variant } # PRELIMINARY: diff --git a/ifex/model/types.yml b/ifex/model/types.yml index fe1852f7..3fb29f3d 100644 --- a/ifex/model/types.yml +++ b/ifex/model/types.yml @@ -33,7 +33,6 @@ primitive_types: - float - double - string - - byteBuffer - set - map - opaque diff --git a/ifex/templates/sds-bamm/sds-bamm-macros.tpl b/ifex/templates/sds-bamm/sds-bamm-macros.tpl index 5bea425f..bd938241 100644 --- a/ifex/templates/sds-bamm/sds-bamm-macros.tpl +++ b/ifex/templates/sds-bamm/sds-bamm-macros.tpl @@ -168,8 +168,6 @@ a bamm-c:RangeConstraint ; xsd:double {%- elif type == 'string' -%} xsd:string -{%- elif type == 'byteBuffer' -%} - xsd:base64Binary {%- else -%} {{ type }} {%- endif -%}