Commit 5518b48
committed
Remove error return for adapter and change get to create temp adapter
- To handle the customer usecases, don't return uinit when the adapter
is used after the adapter library has already closed.
- Given the global adapter is gone, but get adapter is called, then a
temp adapter struct is allocated and an ondemand atexit cleanup of
this memory is registered.
Signed-off-by: Neil R. Spruit <[email protected]>1 parent 91a37cf commit 5518b48
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
| |||
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
230 | | - | |
231 | 228 | | |
232 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
233 | 238 | | |
| 239 | + | |
234 | 240 | | |
235 | 241 | | |
236 | 242 | | |
| |||
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
259 | | - | |
260 | | - | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| |||
0 commit comments