barectf.h.j2: use more accurate definition names
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 17 Sep 2020 13:12:06 +0000 (09:12 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 17 Sep 2020 13:28:36 +0000 (09:28 -0400)
Leaving the old definitions to avoid breaking anything.

The updated names are:

`_BARECTF_PREFIX`:
    `_BARECTF_IDENTIFIER_PREFIX`

`_BARECTF_DEFAULT_STREAM`:
    `_BARECTF_DEFAULT_DATA_STREAM_TYPE_NAME`

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/templates/c/barectf.h.j2

index ccc5dc2ca72b64701747136e21dbee401e943977..9433395044ba076b3dcd14c63afd00322899caf4 100644 (file)
@@ -44,10 +44,16 @@ extern "C" {
 #endif
 
 {% if header_opts.identifier_prefix_definition %}
+/* Backward compatibility */
 #define _BARECTF_PREFIX {{ prefix }}
+
+#define _BARECTF_IDENTIFIER_PREFIX {{ prefix }}
 {% endif %}
 {% if def_dst and header_opts.default_data_stream_type_name_definition %}
+/* Backward compatibility */
 #define _BARECTF_DEFAULT_STREAM {{ def_dst.name }}
+
+#define _BARECTF_DEFAULT_DATA_STREAM_TYPE_NAME {{ def_dst.name }}
 {% endif %}
 {% if def_dst %}
 
This page took 0.027202 seconds and 4 git commands to generate.