Skip to content

Commit e7990b0

Browse files
committed
unix: add PTP_PF_* constants on Linux
These represent valid values for PtpPinDesc.Func. They are defined as enum, thus mkerrors.sh doesn't emit these.
1 parent 256d1df commit e7990b0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

unix/linux/types.go

+7
Original file line numberDiff line numberDiff line change
@@ -4148,6 +4148,13 @@ type (
41484148
PtpSysOffsetPrecise C.struct_ptp_sys_offset_precise
41494149
)
41504150

4151+
const (
4152+
PTP_PF_NONE = C.PTP_PF_NONE
4153+
PTP_PF_EXTTS = C.PTP_PF_EXTTS
4154+
PTP_PF_PEROUT = C.PTP_PF_PEROUT
4155+
PTP_PF_PHYSYNC = C.PTP_PF_PHYSYNC
4156+
)
4157+
41514158
type (
41524159
HIDRawReportDescriptor C.struct_hidraw_report_descriptor
41534160
HIDRawDevInfo C.struct_hidraw_devinfo

unix/ztypes_linux.go

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)