diff options
author | Stanisław Pitucha <viraptor@gmail.com> | 2017-02-04 09:35:54 +1100 |
---|---|---|
committer | Stanisław Pitucha <viraptor@gmail.com> | 2017-02-04 09:35:54 +1100 |
commit | 4c162fa4eef539fa4eae3f4f92f0f4bf60d70c19 (patch) | |
tree | 12835a05f351728f0ebc4718f1d82dd5ba36426d /src | |
parent | 0e78a1e128c82f51eb1a8b992e5594254ca99cf1 (diff) | |
download | libmtp-4c162fa4eef539fa4eae3f4f92f0f4bf60d70c19.tar.gz |
Add LIBMTP_FILES_AND_FOLDERS_ROOT and fix examples
Examples assumed that parent id 0 will list only the top directory, but
actually that's an id for all files (it does happen to correspond to the
reported parent id however). The actual id to be used for the top folder
is 0xffffffff.
Add a new define to make the value more obvious as well.
Diffstat (limited to 'src')
-rw-r--r-- | src/libmtp.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmtp.h.in b/src/libmtp.h.in index ac37b3e..7165f46 100644 --- a/src/libmtp.h.in +++ b/src/libmtp.h.in @@ -902,6 +902,9 @@ char const * LIBMTP_Get_Filetype_Description(LIBMTP_filetype_t); LIBMTP_file_t *LIBMTP_Get_Filelisting(LIBMTP_mtpdevice_t *); LIBMTP_file_t *LIBMTP_Get_Filelisting_With_Callback(LIBMTP_mtpdevice_t *, LIBMTP_progressfunc_t const, void const * const); + +#define LIBMTP_FILES_AND_FOLDERS_ROOT 0xffffffff + LIBMTP_file_t * LIBMTP_Get_Files_And_Folders(LIBMTP_mtpdevice_t *, uint32_t const, uint32_t const); |