File tree Expand file tree Collapse file tree 9 files changed +279
-128
lines changed Expand file tree Collapse file tree 9 files changed +279
-128
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ basedefs
1212bio
1313bitmasking
1414blocksize
15+ blocksize
1516bool
1617bootable
1718bootloader
2728cmock
2829com
2930config
31+ config
3032connectsuccessindex
3133const
3234couldn
@@ -122,26 +124,45 @@ ota
122124otafile
123125otaimagestateaborted
124126otaimagestateaccepted
125- otaimagestaterejected
126- otaimagestatetesting
127127otaimagestateinvalid
128128otaimagestatependingcommit
129129otaimagestaterejected
130+ otaimagestaterejected
131+ otaimagestatetesting
130132otaimagestateunknown
131133otalastimagestate
134+ otapal_closefile
135+ otapalabortfailed
136+ otapalactivatefailed
137+ otapalbadimagestate
138+ otapalbadsignercert
139+ otapalbootinfocreatefailed
140+ otapalbufferinsufficient
141+ otapalcommitfailed
142+ otapalcwdfailed
143+ otapalfileabort
144+ otapalfileclose
145+ otapalfilegensuccess
132146otapalimagestateinvalid
133147otapalimagestatependingcommit
134148otapalimagestateunknown
135149otapalimagestatevalid
136150otapalnullfilecontext
151+ otapalnullfilecontext
152+ otapaloutofmemory
137153otapaloutofmemory
138154otapalrejectfailed
155+ otapalrejectfailed
139156otapalrxfilecreatefailed
157+ otapalrxfilecreatefailed
158+ otapalrxfiletoolarge
140159otapalrxfiletoolarge
141160otapalsignaturecheckfailed
161+ otapalsignaturecheckfailed
162+ otapalsuccess
142163otapalsuccess
143164otapaluninitialized
144- otapal_closefile
165+ otapaluninitialized
145166paddrinfo
146167palpnprotos
147168param
@@ -151,9 +172,11 @@ pcdata
151172pcertfilepath
152173pclientcertpath
153174pdata
175+ pdata
154176pem
155177pfile
156178pfilecontext
179+ pfilecontext
157180pfilepath
158181pformat
159182phostname
@@ -199,7 +222,6 @@ sizeof
199222sleeptimems
200223sni
201224snihostname
202- snprintf
203225sockaddr
204226sockets_invalid_parameter
205227socketstatus
@@ -239,23 +261,3 @@ variadic
239261vtaskdelay
240262writesize
241263www
242- blocksize
243- config
244- otapalsuccess
245- otapaluninitialized
246- otapaloutofmemory
247- otapalnullfilecontext
248- otapalsignaturecheckfailed
249- otapalrxfilecreatefailed
250- otapalrxfiletoolarge
251- otapalbootinfocreatefailed
252- otapalbadsignercert
253- otapalbadimagestate
254- otapalabortfailed
255- otapalrejectfailed
256- otapalcommitfailed
257- otapalactivatefailed
258- otapalfileabort
259- otapalfileclose
260- pdata
261- pfilecontext
Original file line number Diff line number Diff line change 2828
2929#include "ota.h"
3030
31-
32-
3331/**
3432 * @brief Maximum file path length on Linux
3533 */
3634#define OTA_FILE_PATH_LENGTH_MAX 512
3735
36+ /**
37+ * @brief The OTA platform interface status for generating
38+ * absolute file path from the incoming relative file path.
39+ */
40+ typedef enum OtaPalPathGenStatus
41+ {
42+ OtaPalFileGenSuccess , /*!< @brief Absolute path generation success. */
43+ OtaPalCWDFailed , /*!< @brief getcwd failed to output path. */
44+ OtaPalBufferInsufficient /*!< @brief Buffer insufficient for storing the file path. */
45+ } OtaPalPathGenStatus_t ;
46+
3847/**
3948 * @brief Abort an OTA transfer.
4049 *
You can’t perform that action at this time.
0 commit comments