mirror of
https://github.com/ErnyTech/Open-USB-Extreme
synced 2025-01-28 11:27:32 +01:00
Generate D interface file (header)
This commit is contained in:
parent
aaf3daec8a
commit
4d5b1d5d0f
15
include/dusbextreme.di
Normal file
15
include/dusbextreme.di
Normal file
@ -0,0 +1,15 @@
|
||||
// D import file generated from 'dusbextreme.d'
|
||||
module dusbextreme;
|
||||
import std.stdint;
|
||||
enum USBEXTREME_NAME_LENGTH = 32;
|
||||
enum USBEXTREME_ID_LENGTH = 15;
|
||||
enum USBEXTREME_NAME_EXT_LENGTH = 10;
|
||||
enum USBEXTREME_MAGIC = 8;
|
||||
enum USBEXTREME_HEADER_SIZE = usb_extreme_base.sizeof;
|
||||
struct usb_extreme_base
|
||||
{
|
||||
uint8_t[6 + USBEXTREME_ID_LENGTH + USBEXTREME_NAME_LENGTH] empty;
|
||||
uint8_t magic;
|
||||
uint8_t[10] empty2;
|
||||
}
|
||||
extern (C) int is_oue(immutable(void)* headers, immutable(size_t) headerslen);
|
Loading…
x
Reference in New Issue
Block a user