joachifm / hsmtp Goto Github PK
View Code? Open in Web Editor NEWHaskell bindings to libmtp
License: GNU Lesser General Public License v2.1
Haskell bindings to libmtp
License: GNU Lesser General Public License v2.1
Hello! I'm trying to use your mtp lib.
It's ok, but calling getSupportedFileTypes causes segmentation fault. Other functions from Device management section work fine.
Prelude MTP> MTP.init
Loading package filepath-1.1.0.3 ... linking ... done.
Loading package unix-2.4.0.0 ... linking ... done.
Loading package mtp-0.1.1.1 ... linking ... done.
Prelude MTP> MTP.withFirstDevice MTP.getDeviceVersion
Device 0 (VID=041e and PID=4157) is a Creative ZEN.
ignoring usb_claim_interface = -16ignoring usb_claim_interface = -22PTP_ERROR_IO: Trying again after re-initializing USB interface
inep: usb_get_endpoint_status(): Device or resource busy
outep: usb_get_endpoint_status(): Device or resource busy
usb_clear_halt() on IN endpoint: Device or resource busy
usb_clear_halt() on OUT endpoint: Device or resource busy
usb_clear_halt() on INTERRUPT endpoint: Device or resource busy
"1.21.03_0.03.01"
Prelude MTP> MTP.withFirstDevice MTP.getManufacturerName
Device 0 (VID=041e and PID=4157) is a Creative ZEN.
"Creative Technology Ltd"
Prelude MTP> MTP.withFirstDevice MTP.getModelName
Device 0 (VID=041e and PID=4157) is a Creative ZEN.
"Creative ZEN"
Also getFoulderList behaves in a strange way:
Prelude> MTP.withFirstDevice MTP.getFolderList
Device 0 (VID=041e and PID=4157) is a Creative ZEN.
Prelude>
But there are some folders on device.
I'm using Ubuntu 10.04, GHCi version 6.12.1, libmtp version 1.0.2-1ubuntu1, MTP version 0.1.1.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.