Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tools/libARCommandsgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,8 +1874,8 @@ def native_generateCmds(ctx, paths):
hfile.write (' * @param buffLen the length of the command buffer\n')
hfile.write (' * @return ' + AREnumValue (LIB_MODULE, DEC_SUBMODULE, DEC_ERR_ENAME, 'OK') + ' on success, any error code otherwise\n')
hfile.write (' */\n')
hfile.write (AREnumName (LIB_MODULE, DEC_SUBMODULE, DEC_ERR_ENAME) + '\n')
hfile.write (ARFunctionName (LIB_MODULE, DEC_SUBMODULE, 'DecodeBuffer') + ' (uint8_t *buffer, int32_t buffLen) DEPRECATED;\n')
hfile.write ('DEPRECATED\n' + AREnumName (LIB_MODULE, DEC_SUBMODULE, DEC_ERR_ENAME) + '\n')
hfile.write (ARFunctionName (LIB_MODULE, DEC_SUBMODULE, 'DecodeBuffer') + ' (uint8_t *buffer, int32_t buffLen);\n')
hfile.write ('\n')
hfile.write ('\n/**\n')
hfile.write (' * @brief Describe a comand buffer\n')
Expand Down Expand Up @@ -1930,7 +1930,7 @@ def native_generateCmds(ctx, paths):
hfile.write (' * @param callback new callback for the command ' + get_ftr_old_name(ftr) + '.' + brefCmdName + '\n')
hfile.write (' * @param custom pointer that will be passed to all calls to the callback\n')
hfile.write (' */\n')
hfile.write ('void ' + ARFunctionName (LIB_MODULE, DEC_SUBMODULE, 'Set' + ARCapitalize (get_ftr_old_name(ftr)) + ARCapitalize (format_cmd_name(cmd)) + 'Callback') + ' (' + ARTypeName (LIB_MODULE, DEC_SUBMODULE, ARCapitalize (get_ftr_old_name(ftr)) + ARCapitalize (format_cmd_name(cmd)) + 'Callback') + ' callback, void *custom) DEPRECATED;\n')
hfile.write ('DEPRECATED\nvoid ' + ARFunctionName (LIB_MODULE, DEC_SUBMODULE, 'Set' + ARCapitalize (get_ftr_old_name(ftr)) + ARCapitalize (format_cmd_name(cmd)) + 'Callback') + ' (' + ARTypeName (LIB_MODULE, DEC_SUBMODULE, ARCapitalize (get_ftr_old_name(ftr)) + ARCapitalize (format_cmd_name(cmd)) + 'Callback') + ' callback, void *custom);\n')
hfile.write ('\n')

hfile.write ('#endif /* ' + COMMANDSDEC_DEFINE + ' */\n')
Expand Down