summaryrefslogtreecommitdiff
path: root/cesar/maximus/interface/msg
diff options
context:
space:
mode:
authorThierry Carré2013-03-22 14:13:53 +0100
committerNicolas Schodet2013-03-27 16:22:09 +0100
commitb4c02afaf40342a4ff6653d0eb0fdfa08b99fa08 (patch)
tree169e3805edb2fb75efa09436ff5a6a9d6fc20f64 /cesar/maximus/interface/msg
parentf5cffd8d7318e244fb4b97cd0ea27876f14c1041 (diff)
cesar/maximus: make MsgFunctionCall::send return the response
Diffstat (limited to 'cesar/maximus/interface/msg')
-rw-r--r--cesar/maximus/interface/msg/inc/MsgFunctionCall.h4
-rw-r--r--cesar/maximus/interface/msg/src/MsgFunctionCall.cpp8
2 files changed, 7 insertions, 5 deletions
diff --git a/cesar/maximus/interface/msg/inc/MsgFunctionCall.h b/cesar/maximus/interface/msg/inc/MsgFunctionCall.h
index b956654068..c2c3fd34ae 100644
--- a/cesar/maximus/interface/msg/inc/MsgFunctionCall.h
+++ b/cesar/maximus/interface/msg/inc/MsgFunctionCall.h
@@ -132,9 +132,9 @@ public:
void send_async ();
void send_async_2 (const Station &sta);
- void send ();
+ MsgFunctionCall *send ();
- void send_2 (const Station &sta);
+ MsgFunctionCall *send_2 (const Station &sta);
bool is_param (const std::string &name) const;
diff --git a/cesar/maximus/interface/msg/src/MsgFunctionCall.cpp b/cesar/maximus/interface/msg/src/MsgFunctionCall.cpp
index e094735b28..a4a2d259a3 100644
--- a/cesar/maximus/interface/msg/src/MsgFunctionCall.cpp
+++ b/cesar/maximus/interface/msg/src/MsgFunctionCall.cpp
@@ -312,11 +312,11 @@ MsgFunctionCall::send_async_2 (const Station &sta)
send_async ();
}
-void
+MsgFunctionCall *
MsgFunctionCall::send_2 (const Station &sta)
{
set_sta (sta);
- send ();
+ return send ();
}
void
@@ -339,7 +339,7 @@ MsgFunctionCall::send_async ()
clear_list_of_parameters ();
}
-void
+MsgFunctionCall *
MsgFunctionCall::send ()
{
logFunction ();
@@ -368,6 +368,8 @@ MsgFunctionCall::send ()
/* Free python dependency. */
mCallback = cb_t ();
}
+
+ return this;
}
bool