summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-24 05:26:03 -0700
committerirungentoo <irungentoo@gmail.com>2013-07-24 05:26:03 -0700
commit57e7ed7c10927858e1ee994111d3e5a3516cd9f0 (patch)
treef36749ee3e277f3c04091821374596797dfbaa42 /core/Messenger.h
parent3b53bc3218a8ffd149d4a93bb62becab41da7ae1 (diff)
parent92398844a05bf5f0ce4333e0d4bd03c6e6633f77 (diff)
Merge pull request #99 from Astonex/master
Simple init_networking() error checking
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h6
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 */
133void m_callback_userstatus(void (*function)(int, uint8_t *, uint16_t)); 133void m_callback_userstatus(void (*function)(int, uint8_t *, uint16_t));
134 134
135/* run this at startup */ 135/* run this at startup
136void initMessenger(); 136 returns 0 if no connection problems
137 returns -1 if there are problems */
138int 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 */