diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2012-06-21 14:24:35 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2012-06-21 14:24:35 +0000 |
commit | a57472b74c556017352f5d12286ef85ec8c499cc (patch) | |
tree | 74612abc2d6632c6e0bd9f964cfb436d01d08293 | |
parent | 4e949772ac81d2335c1bdf4faa1932519dfc7def (diff) | |
download | libgphoto2-a57472b74c556017352f5d12286ef85ec8c499cc.tar.gz |
added first getfilesystemmanifest code
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14040 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r-- | camlibs/ptp2/ptp.c | 20 | ||||
-rw-r--r-- | camlibs/ptp2/ptp.h | 5 |
2 files changed, 25 insertions, 0 deletions
diff --git a/camlibs/ptp2/ptp.c b/camlibs/ptp2/ptp.c index 9347beb59..6f75a4a44 100644 --- a/camlibs/ptp2/ptp.c +++ b/camlibs/ptp2/ptp.c @@ -678,6 +678,26 @@ ptp_getobjecthandles (PTPParams* params, uint32_t storage, return ret; } +uint16_t +ptp_getfilesystemmanifest (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, uint32_t associationOH, + unsigned char** data) +{ + uint16_t ret; + PTPContainer ptp; + unsigned int len; + + PTP_CNT_INIT(ptp); + ptp.Code=PTP_OC_GetFilesystemManifest; + ptp.Param1=storage; + ptp.Param2=objectformatcode; + ptp.Param3=associationOH; + ptp.Nparam=3; + len=0; + ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, &len); + return ret; +} + /** * ptp_getnumobjects: * params: PTPParams* diff --git a/camlibs/ptp2/ptp.h b/camlibs/ptp2/ptp.h index 6474f2869..b706c9f50 100644 --- a/camlibs/ptp2/ptp.h +++ b/camlibs/ptp2/ptp.h @@ -2260,6 +2260,7 @@ uint16_t ptp_getobjecthandles (PTPParams* params, uint32_t storage, uint32_t associationOH, PTPObjectHandles* objecthandles); + uint16_t ptp_getnumobjects (PTPParams* params, uint32_t storage, uint32_t objectformatcode, uint32_t associationOH, @@ -2321,6 +2322,10 @@ uint16_t ptp_getdevicepropvalue (PTPParams* params, uint16_t propcode, PTPPropertyValue* value, uint16_t datatype); uint16_t ptp_setdevicepropvalue (PTPParams* params, uint16_t propcode, PTPPropertyValue* value, uint16_t datatype); +uint16_t ptp_getfilesystemmanifest (PTPParams* params, uint32_t storage, + uint32_t objectformatcode, uint32_t associationOH, + unsigned char** data); + uint16_t ptp_check_event (PTPParams *params); |