summaryrefslogtreecommitdiff
path: root/build-aux/mbim-codegen/Message.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/mbim-codegen/Message.py')
-rw-r--r--build-aux/mbim-codegen/Message.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/mbim-codegen/Message.py b/build-aux/mbim-codegen/Message.py
index 8ff58ea..a928f19 100644
--- a/build-aux/mbim-codegen/Message.py
+++ b/build-aux/mbim-codegen/Message.py
@@ -843,6 +843,12 @@ class Message:
inner_template = (' guint32 _${field};\n')
template += (string.Template(inner_template).substitute(translations))
+ if message_type == 'response':
+ template += (
+ '\n'
+ ' if (!mbim_message_response_get_result (message, MBIM_MESSAGE_TYPE_COMMAND_DONE, NULL))\n'
+ ' return NULL;\n')
+
template += (
'\n'
' str = g_string_new ("");\n')