From 29aa702a4f0cc50c091e0e9624d5ee897138ddf3 Mon Sep 17 00:00:00 2001 From: Astonex Date: Wed, 24 Jul 2013 00:32:50 +0100 Subject: Added simple init_networking() error checking --- core/Messenger.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/Messenger.h') diff --git a/core/Messenger.h b/core/Messenger.h index 2484692c..6afe84ac 100644 --- a/core/Messenger.h +++ b/core/Messenger.h @@ -132,8 +132,10 @@ void m_callback_namechange(void (*function)(int, uint8_t *, uint16_t)); you are not responsible for freeing newstatus */ void m_callback_userstatus(void (*function)(int, uint8_t *, uint16_t)); -/* run this at startup */ -void initMessenger(); +/* run this at startup + returns 0 if no connection problems + returns -1 if there are problems */ +int initMessenger(); /* the main loop that needs to be run at least 200 times per second */ -- cgit v1.2.3