[PATCH] Lua/specs: Fix image:read() annotation

6 views
Skip to first unread message

Christian Storm

unread,
Aug 3, 2026, 4:57:02 PM (2 days ago) Aug 3
to swup...@googlegroups.com
Signed-off-by: Christian Storm <christi...@siemens.com>
---
handlers/swupdate.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/handlers/swupdate.lua b/handlers/swupdate.lua
index e4bda3fa..1bed90b2 100644
--- a/handlers/swupdate.lua
+++ b/handlers/swupdate.lua
@@ -294,8 +294,8 @@ local img_type = {
-- that SWUpdate can continue with the stream's next artifact after
-- the Lua Handler returns.
--
- --- @param self img_type This `img_type` instance
- --- @param callback function Callback `function(chunk) ... end` that is fed the current image artifact in chunks.
+ --- @param self img_type This `img_type` instance
+ --- @param callback fun(chunk: string):number Callback that is fed the image artifact in chunks; return < 0 on error.
--- @return number # 0 on success, -1 on error
--- @return string | nil # nil on success, error message on failure
['read'] = function(self, callback) end,
--
2.55.0

Stefano Babic

unread,
3:45 AM (4 hours ago) 3:45 AM
to Christian Storm, swup...@googlegroups.com
Applied to -master, thanks !

Best regards,
Stefano Babic

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages