diff options
author | Astonex <softukitu@gmail.com> | 2013-07-24 00:32:50 +0100 |
---|---|---|
committer | Astonex <softukitu@gmail.com> | 2013-07-24 00:32:50 +0100 |
commit | 29aa702a4f0cc50c091e0e9624d5ee897138ddf3 (patch) | |
tree | d94b6894a004509b3cbc756a3b0a4fb1eb0e4791 /core/Messenger.h | |
parent | b7a4c20279ba32e89119c78c2e78ee279358d338 (diff) |
Added simple init_networking() error checking
Diffstat (limited to 'core/Messenger.h')
-rw-r--r-- | core/Messenger.h | 6 |
1 files changed, 4 insertions, 2 deletions
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)); | |||
132 | you are not responsible for freeing newstatus */ | 132 | you are not responsible for freeing newstatus */ |
133 | void m_callback_userstatus(void (*function)(int, uint8_t *, uint16_t)); | 133 | void m_callback_userstatus(void (*function)(int, uint8_t *, uint16_t)); |
134 | 134 | ||
135 | /* run this at startup */ | 135 | /* run this at startup |
136 | void initMessenger(); | 136 | returns 0 if no connection problems |
137 | returns -1 if there are problems */ | ||
138 | int initMessenger(); | ||
137 | 139 | ||
138 | 140 | ||
139 | /* the main loop that needs to be run at least 200 times per second */ | 141 | /* the main loop that needs to be run at least 200 times per second */ |