From: Philippe Proulx Date: Thu, 17 Sep 2020 13:12:06 +0000 (-0400) Subject: barectf.h.j2: use more accurate definition names X-Git-Tag: v3.0.0~61 X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=3b04a0d69e118e88ca4db58a50ae3921726b4d7c;p=barectf.git barectf.h.j2: use more accurate definition names 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 --- diff --git a/barectf/templates/c/barectf.h.j2 b/barectf/templates/c/barectf.h.j2 index ccc5dc2..9433395 100644 --- a/barectf/templates/c/barectf.h.j2 +++ b/barectf/templates/c/barectf.h.j2 @@ -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 %}