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 {  /**   * Callback function prototype.   */ -typedef void (*usbmuxd_event_cb_t) (const usbmuxd_event_t *event); +typedef void (*usbmuxd_event_cb_t) (const usbmuxd_event_t *event, void *user_data);  /**   * 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);   *   * @return 0 on success or negative on error.   */ -int usbmuxd_subscribe(usbmuxd_event_cb_t callback); +int usbmuxd_subscribe(usbmuxd_event_cb_t callback, void *user_data);  /**   * Unsubscribe callback. | 
