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
12
12
bio
13
13
bitmasking
14
14
blocksize
15
+ blocksize
15
16
bool
16
17
bootable
17
18
bootloader
27
28
cmock
28
29
com
29
30
config
31
+ config
30
32
connectsuccessindex
31
33
const
32
34
couldn
@@ -122,26 +124,45 @@ ota
122
124
otafile
123
125
otaimagestateaborted
124
126
otaimagestateaccepted
125
- otaimagestaterejected
126
- otaimagestatetesting
127
127
otaimagestateinvalid
128
128
otaimagestatependingcommit
129
129
otaimagestaterejected
130
+ otaimagestaterejected
131
+ otaimagestatetesting
130
132
otaimagestateunknown
131
133
otalastimagestate
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
132
146
otapalimagestateinvalid
133
147
otapalimagestatependingcommit
134
148
otapalimagestateunknown
135
149
otapalimagestatevalid
136
150
otapalnullfilecontext
151
+ otapalnullfilecontext
152
+ otapaloutofmemory
137
153
otapaloutofmemory
138
154
otapalrejectfailed
155
+ otapalrejectfailed
139
156
otapalrxfilecreatefailed
157
+ otapalrxfilecreatefailed
158
+ otapalrxfiletoolarge
140
159
otapalrxfiletoolarge
141
160
otapalsignaturecheckfailed
161
+ otapalsignaturecheckfailed
162
+ otapalsuccess
142
163
otapalsuccess
143
164
otapaluninitialized
144
- otapal_closefile
165
+ otapaluninitialized
145
166
paddrinfo
146
167
palpnprotos
147
168
param
@@ -151,9 +172,11 @@ pcdata
151
172
pcertfilepath
152
173
pclientcertpath
153
174
pdata
175
+ pdata
154
176
pem
155
177
pfile
156
178
pfilecontext
179
+ pfilecontext
157
180
pfilepath
158
181
pformat
159
182
phostname
@@ -199,7 +222,6 @@ sizeof
199
222
sleeptimems
200
223
sni
201
224
snihostname
202
- snprintf
203
225
sockaddr
204
226
sockets_invalid_parameter
205
227
socketstatus
@@ -239,23 +261,3 @@ variadic
239
261
vtaskdelay
240
262
writesize
241
263
www
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 28
28
29
29
#include "ota.h"
30
30
31
-
32
-
33
31
/**
34
32
* @brief Maximum file path length on Linux
35
33
*/
36
34
#define OTA_FILE_PATH_LENGTH_MAX 512
37
35
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
+
38
47
/**
39
48
* @brief Abort an OTA transfer.
40
49
*
You can’t perform that action at this time.
0 commit comments