summaryrefslogtreecommitdiffstats
path: root/src/NotificationProxy.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-05-10 08:27:53 -0700
committerGravatar Matt Colyer2009-05-10 08:28:04 -0700
commit1351b686d450112ae55d26d81d9d59c5f542f12e (patch)
tree442c7e48eb83f96a22f7c6d889e8fe26151d6cba /src/NotificationProxy.h
parente91caeb1c9929f9dc8af747bb3a2e52ec06b03af (diff)
downloadlibimobiledevice-1351b686d450112ae55d26d81d9d59c5f542f12e.tar.gz
libimobiledevice-1351b686d450112ae55d26d81d9d59c5f542f12e.tar.bz2
NotificationProxy support added.0.9.0
[#27 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/NotificationProxy.h')
-rw-r--r--src/NotificationProxy.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/NotificationProxy.h b/src/NotificationProxy.h
index 7b4b48d..3552b79 100644
--- a/src/NotificationProxy.h
+++ b/src/NotificationProxy.h
@@ -27,4 +27,20 @@
struct iphone_np_client_int {
iphone_umux_client_t connection;
GMutex *mutex;
+ GThread *notifier;
};
+
+static const char *np_default_notifications[10] = {
+ NP_SYNC_SUSPEND_REQUEST,
+ NP_SYNC_RESUME_REQUEST,
+ NP_PHONE_NUMBER_CHANGED,
+ NP_SYNC_CANCEL_REQUEST,
+ NP_DEVICE_NAME_CHANGED,
+ NP_ATTEMPTACTIVATION,
+ NP_DS_DOMAIN_CHANGED,
+ NP_APP_INSTALLED,
+ NP_APP_UNINSTALLED,
+ NULL
+};
+
+gpointer iphone_np_notifier( gpointer arg );