Skip to content

Commit

Permalink
accidentally deleted packet init struct from ptp.h
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Jan 13, 2024
1 parent c867898 commit 575e2e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ptp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 575e2e5

Please sign in to comment.