diff options
author | Will Rouesnel <w.rouesnel@gmail.com> | 2014-12-09 03:32:31 +1100 |
---|---|---|
committer | Will Rouesnel <w.rouesnel@gmail.com> | 2014-12-09 07:51:49 +1100 |
commit | 8a56cb3b5814d8152613fefb74a11bb28dc70f7a (patch) | |
tree | eaccf6de5baf0bfe3bfaa91ffebcf46caaffa22d /toxav/rtp.c | |
parent | f1db6e7d6cb94584fbe03a30aebca36666b6e033 (diff) |
Change prototype for custom_packet_handler functions
Change the custom_packet_handler callback function interface to be
consistent with other callback interfaces.
The new interface takes the Messenger object calling as the first
parameter, and moves the user data object to be the last parameter.
This makes it comparable to the callbacks for file transfer and the
like, and should simplify building interfaces.
The new prototype is: int (*)(Messenger *m, int32_t friendnumber, const
uint8_t *data, uint32_t len, void *object)
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r-- | toxav/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c index 6eb61a81..3696fd0a 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -341,7 +341,7 @@ RTPMessage *msg_parse ( const uint8_t *data, int length ) | |||
341 | /** | 341 | /** |
342 | * Callback for networking core. | 342 | * Callback for networking core. |
343 | */ | 343 | */ |
344 | int rtp_handle_packet ( void *object, const uint8_t *data, uint32_t length ) | 344 | int rtp_handle_packet ( Messenger* m, int32_t friendnumber, const uint8_t *data, uint32_t length, void *object ) |
345 | { | 345 | { |
346 | RTPSession *session = object; | 346 | RTPSession *session = object; |
347 | RTPMessage *msg; | 347 | RTPMessage *msg; |