From 575e2e50ce740d587c48ca767dc2aab2adaa9cb9 Mon Sep 17 00:00:00 2001 From: Daniel C Date: Sat, 13 Jan 2024 15:53:41 -0500 Subject: [PATCH] accidentally deleted packet init struct from ptp.h --- src/ptp.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ptp.h b/src/ptp.h index 3627ebd..a8871be 100644 --- a/src/ptp.h +++ b/src/ptp.h @@ -74,6 +74,18 @@ struct PtpIpEndDataPacket { uint32_t transaction; }; +struct PtpIpInitPacket { + uint32_t length; + uint32_t type; + uint32_t guid1; + uint32_t guid2; + uint32_t guid3; + uint32_t guid4; + char device_name[8]; // Size ?? + uint16_t major_ver; + uint16_t minor_ver; +}; + // Standard PTP Operation Codes (OC) #define PTP_OC_GetDeviceInfo 0x1001 #define PTP_OC_OpenSession 0x1002