aboutsummaryrefslogtreecommitdiff
path: root/src/libmtp.h.in
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2013-03-10 12:22:51 -0700
committerLinus Walleij <triad@df.lth.se>2013-03-11 13:15:23 +0100
commit50dd3478d53bbdaadce8b9eea125d0e427c7d79d (patch)
tree5d5e04817ab04acb97ab8c26e340f6b235b60228 /src/libmtp.h.in
parentcb2794ebf651dc2ce2be074b70432b6e9c839727 (diff)
downloadlibmtp-50dd3478d53bbdaadce8b9eea125d0e427c7d79d.tar.gz
Propagate StoreRemoved, ObjectAdded and ObjectRemoved events.
These events, along with the previously exposed StoreAdded event, are the most frequently implemented events on MTP devices. In the case of Google's Android MTP stack, they are the only events exposed. In the case of StoreRemoved, the param value is the storage ID and in the case of ObjectAdded/Removed, it is the entity ID. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Linus Walleij <triad@df.lth.se>
Diffstat (limited to 'src/libmtp.h.in')
-rw-r--r--src/libmtp.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmtp.h.in b/src/libmtp.h.in
index de5680a..9c1c73f 100644
--- a/src/libmtp.h.in
+++ b/src/libmtp.h.in
@@ -771,6 +771,9 @@ struct LIBMTP_devicestorage_struct {
enum LIBMTP_event_enum {
LIBMTP_EVENT_NONE,
LIBMTP_EVENT_STORE_ADDED,
+ LIBMTP_EVENT_STORE_REMOVED,
+ LIBMTP_EVENT_OBJECT_ADDED,
+ LIBMTP_EVENT_OBJECT_REMOVED,
};
typedef enum LIBMTP_event_enum LIBMTP_event_t;