diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2021-04-14 13:27:36 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2021-04-14 13:27:36 +0200 |
commit | 2b35af2165e2ea4b07c849785db29db654f8cf06 (patch) | |
tree | 7df78bd23d4b47077975f09123f388d36cae9ed9 /camlibs/ptp2/ptp-private.h | |
parent | 077d2f280a75f2c170b16eec118b4dfb876b8191 (diff) | |
download | libgphoto2-2b35af2165e2ea4b07c849785db29db654f8cf06.tar.gz |
start the work of allowing sigma fp configuration
Diffstat (limited to 'camlibs/ptp2/ptp-private.h')
-rw-r--r-- | camlibs/ptp2/ptp-private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camlibs/ptp2/ptp-private.h b/camlibs/ptp2/ptp-private.h index 4a5822e80..a030bc823 100644 --- a/camlibs/ptp2/ptp-private.h +++ b/camlibs/ptp2/ptp-private.h @@ -142,6 +142,16 @@ have_eos_prop(PTPParams *params, uint16_t vendor, uint16_t prop) { return 0; } +static inline int +have_sigma_prop(PTPParams *params, uint16_t vendor, uint16_t prop) { + /* The special Canon EOS property set gets special treatment. */ + if ((params->deviceinfo.VendorExtensionID != PTP_VENDOR_GP_SIGMAFP) || (vendor != PTP_VENDOR_GP_SIGMAFP)) + return 0; + if ((prop & 0xf000) == 0xd000) /* we map it to vendor config space */ + return 1; + return 0; +} + struct _CameraPrivateLibrary { PTPParams params; int checkevents; |