summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2016-08-01 13:05:06 -0500
committerDan Williams <dcbw@redhat.com>2016-08-01 13:13:07 -0500
commit4fed3fffe64bec88b5052d30df0257cd65abf5fe (patch)
tree936067441d06a14640a3300225c331ee16df0ac1
parentbadcf2a4d6e3462143cd555f05dbe2f3723d7ce6 (diff)
mbim-codegen: fix message name in generated code doc for parse functions
At the point where the codegen happens, {name} is the name of the last function argument, not of the message. Also fix up the documentation to say "Parses and returns parameters" instead of "Create a new request" since parsing doesn't create any requests. New: * Parses and returns parameters of the 'Signal State' notification command in the 'Basic Connect' service. Old: * Create a new request for the 'ErrorRateThreshold' notification command in the 'Basic Connect' service.
-rw-r--r--build-aux/mbim-codegen/Message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/mbim-codegen/Message.py b/build-aux/mbim-codegen/Message.py
index a569685..a8f1369 100644
--- a/build-aux/mbim-codegen/Message.py
+++ b/build-aux/mbim-codegen/Message.py
@@ -450,7 +450,7 @@ class Message:
Emit message parser
"""
def _emit_message_parser(self, hfile, cfile, message_type, fields):
- translations = { 'name' : self.name,
+ translations = { 'message' : self.name,
'service' : self.service,
'underscore' : utils.build_underscore_name (self.fullname),
'message_type' : message_type,
@@ -569,7 +569,7 @@ class Message:
template += (
' * @error: return location for error or %NULL.\n'
' *\n'
- ' * Create a new request for the \'${name}\' ${message_type} command in the \'${service}\' service.\n'
+ ' * Parses and returns parameters of the \'${message}\' ${message_type} command in the \'${service}\' service.\n'
' *\n'
' * Returns: %TRUE if the message was correctly parsed, %FALSE if @error is set.\n'
' */\n'