summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-13 22:01:45 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-13 22:01:45 +0100
commit45d28904b92c825d1ac88be9edae8baabcd4bba1 (patch)
tree7b1b259ba09d35867c141cf072707e6a0891f97a /toxcore/Messenger.h
parenta8823830d39bdbde8d4f4f34bfcb26dc4bf79741 (diff)
Use <stdbool.h> and replace _Bool with bool.
This header is a requirement for the public API, therefore is assumed to exist. It is a C99 standard library header, and _Bool is not intended to be used directly, except in legacy code that defines bool (and true/false) itself. We don't use or depend on such code. None of our client code uses or depends on such code. There is no reason to not use bool.
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 21d9f7b3..59cb401e 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -242,7 +242,7 @@ struct Messenger {
242 void (*friend_namechange)(struct Messenger *m, uint32_t, const uint8_t *, size_t, void *); 242 void (*friend_namechange)(struct Messenger *m, uint32_t, const uint8_t *, size_t, void *);
243 void (*friend_statusmessagechange)(struct Messenger *m, uint32_t, const uint8_t *, size_t, void *); 243 void (*friend_statusmessagechange)(struct Messenger *m, uint32_t, const uint8_t *, size_t, void *);
244 void (*friend_userstatuschange)(struct Messenger *m, uint32_t, unsigned int, void *); 244 void (*friend_userstatuschange)(struct Messenger *m, uint32_t, unsigned int, void *);
245 void (*friend_typingchange)(struct Messenger *m, uint32_t, _Bool, void *); 245 void (*friend_typingchange)(struct Messenger *m, uint32_t, bool, void *);
246 void (*read_receipt)(struct Messenger *m, uint32_t, uint32_t, void *); 246 void (*read_receipt)(struct Messenger *m, uint32_t, uint32_t, void *);
247 void (*friend_connectionstatuschange)(struct Messenger *m, uint32_t, unsigned int, void *); 247 void (*friend_connectionstatuschange)(struct Messenger *m, uint32_t, unsigned int, void *);
248 void (*friend_connectionstatuschange_internal)(struct Messenger *m, uint32_t, uint8_t, void *); 248 void (*friend_connectionstatuschange_internal)(struct Messenger *m, uint32_t, uint8_t, void *);
@@ -494,7 +494,7 @@ void m_callback_userstatus(Messenger *m, void (*function)(Messenger *m, uint32_t
494/* Set the callback for typing changes. 494/* Set the callback for typing changes.
495 * Function(uint32_t friendnumber, uint8_t is_typing) 495 * Function(uint32_t friendnumber, uint8_t is_typing)
496 */ 496 */
497void m_callback_typingchange(Messenger *m, void(*function)(Messenger *m, uint32_t, _Bool, void *)); 497void m_callback_typingchange(Messenger *m, void(*function)(Messenger *m, uint32_t, bool, void *));
498 498
499/* Set the callback for read receipts. 499/* Set the callback for read receipts.
500 * Function(uint32_t friendnumber, uint32_t receipt) 500 * Function(uint32_t friendnumber, uint32_t receipt)