diff options
| author | 2009-08-26 02:08:00 +0200 | |
|---|---|---|
| committer | 2009-08-26 02:08:00 +0200 | |
| commit | 8e86e652fbaea2b163f2a5f62ec85fbf1ce0141e (patch) | |
| tree | 3d0f97521f2bfe269012c7b66b4a70c5d2eb3f29 /libusbmuxd/usbmuxd.h | |
| parent | a9712a41ca2324cfa4e275453299772bee662726 (diff) | |
| download | usbmuxd-8e86e652fbaea2b163f2a5f62ec85fbf1ce0141e.tar.gz usbmuxd-8e86e652fbaea2b163f2a5f62ec85fbf1ce0141e.tar.bz2 | |
Allow passing user_data to the callback function.
Diffstat (limited to 'libusbmuxd/usbmuxd.h')
| -rw-r--r-- | libusbmuxd/usbmuxd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusbmuxd/usbmuxd.h b/libusbmuxd/usbmuxd.h index f12ae39..5d88348 100644 --- a/libusbmuxd/usbmuxd.h +++ b/libusbmuxd/usbmuxd.h | |||
| @@ -34,7 +34,7 @@ typedef struct { | |||
| 34 | /** | 34 | /** |
| 35 | * Callback function prototype. | 35 | * Callback function prototype. |
| 36 | */ | 36 | */ |
| 37 | typedef void (*usbmuxd_event_cb_t) (const usbmuxd_event_t *event); | 37 | typedef void (*usbmuxd_event_cb_t) (const usbmuxd_event_t *event, void *user_data); |
| 38 | 38 | ||
| 39 | /** | 39 | /** |
| 40 | * Subscribe a callback function so that applications get to know about | 40 | * Subscribe a callback function so that applications get to know about |
| @@ -44,7 +44,7 @@ typedef void (*usbmuxd_event_cb_t) (const usbmuxd_event_t *event); | |||
| 44 | * | 44 | * |
| 45 | * @return 0 on success or negative on error. | 45 | * @return 0 on success or negative on error. |
| 46 | */ | 46 | */ |
| 47 | int usbmuxd_subscribe(usbmuxd_event_cb_t callback); | 47 | int usbmuxd_subscribe(usbmuxd_event_cb_t callback, void *user_data); |
| 48 | 48 | ||
| 49 | /** | 49 | /** |
| 50 | * Unsubscribe callback. | 50 | * Unsubscribe callback. |
