summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@linux.vnet.ibm.com>2017-02-12 09:12:37 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2017-02-27 15:57:37 -0600
commitfd43ef731e187bd8717a688d90c99143a47ca3db (patch)
tree3407124dab750f7e149487d6053ca897e6e59207 /tools
parentbee1a6a3b233495fc48265626ca3a7952a43363f (diff)
downloadsdbusplus-fd43ef731e187bd8717a688d90c99143a47ca3db.tar.gz
sdbusplus-fd43ef731e187bd8717a688d90c99143a47ca3db.zip
Disable transaction id support by default
Allow the transaction id support to be enabled via configure options. In the code, ifdef the code based if transaction support is desired. Change-Id: I98695268397f437b6fe14621f820fbcaecb45b7a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/sdbusplus/templates/interface.mako.server.cpp.in (renamed from tools/sdbusplus/templates/interface.mako.server.cpp)4
-rw-r--r--tools/sdbusplus/templates/method.mako.prototype.hpp.in (renamed from tools/sdbusplus/templates/method.mako.prototype.hpp)2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/sdbusplus/templates/interface.mako.server.cpp b/tools/sdbusplus/templates/interface.mako.server.cpp.in
index 14dfa01..165db62 100644
--- a/tools/sdbusplus/templates/interface.mako.server.cpp
+++ b/tools/sdbusplus/templates/interface.mako.server.cpp.in
@@ -64,7 +64,7 @@ int ${classname}::_callback_get_${p.name}(
try
{
auto m = message::message(reply);
-#ifndef DISABLE_TRANSACTION
+#if @WANT_TRANSACTION@
{
auto tbus = m.get_bus();
sdbusplus::server::transaction::Transaction t(tbus, m);
@@ -105,7 +105,7 @@ int ${classname}::_callback_set_${p.name}(
try
{
auto m = message::message(value);
-#ifndef DISABLE_TRANSACTION
+#if @WANT_TRANSACTION@
{
auto tbus = m.get_bus();
sdbusplus::server::transaction::Transaction t(tbus, m);
diff --git a/tools/sdbusplus/templates/method.mako.prototype.hpp b/tools/sdbusplus/templates/method.mako.prototype.hpp.in
index 0c4615e..f773f3f 100644
--- a/tools/sdbusplus/templates/method.mako.prototype.hpp
+++ b/tools/sdbusplus/templates/method.mako.prototype.hpp.in
@@ -128,7 +128,7 @@ int ${interface_name()}::_callback_${ method.CamelCase }(
### Need to add a ref to msg since we attached it to an
### sdbusplus::message.
auto m = message::message(msg);
-#ifndef DISABLE_TRANSACTION
+#if @WANT_TRANSACTION@
{
auto tbus = m.get_bus();
sdbusplus::server::transaction::Transaction t(tbus, m);
OpenPOWER on IntegriCloud