File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,12 @@ All common system call operations should have asynchronous versions.
188
188
189
189
These asynchronous APIs must not use or include any internal/global state.
190
190
191
- | Characteristic | Value |
192
- | ------------------| -------------------------------|
193
- | Location | ` libtock/[category] ` |
194
- | Source File Name | ` libtock/[category]/[name].c ` |
195
- | Header File Name | ` libtock/[category]/[name].h ` |
191
+ | Characteristic | Value |
192
+ | -----------------------------------| -------------------------------------|
193
+ | Location | ` libtock/[category] ` |
194
+ | Source File Name | ` libtock/[category]/[name].c ` |
195
+ | Header File Name | ` libtock/[category]/[name].h ` |
196
+ | Types Header File Name (Optional) | ` libtock/[category]/[name]_types.h ` |
196
197
197
198
### Header Files
198
199
@@ -275,6 +276,13 @@ returncode_t libtock_sensor_read(libtock_sensor_callback_reading cb) {
275
276
}
276
277
```
277
278
279
+ ### Types Header
280
+
281
+ If there are any additional types, beyond the callback signature, that are
282
+ exposed in the public API of the driver they must be included in the
283
+ `libtock/[category]/[name]_types.h` file. This makes it possible to include
284
+ these types from `libtock-sync` implementations.
285
+
278
286
## Synchronous APIs
279
287
280
288
Most system call interfaces will want to provide a synchronous API as well. This
You can’t perform that action at this time.
0 commit comments