summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-13 04:12:23 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-13 04:12:23 -0700
commit4cc4e79088c3478e1d50606006a39c2c872da0db (patch)
tree33a39a2d2c43327423db49fedbceef7bbbd92dad /core/Messenger.h
parentfe4e37760bdbf4ad69dc596aa7e7c427412c65dc (diff)
parent6b06431e9bcbef2eb1126dda01a68d4a81f0825e (diff)
Merge pull request #447 from gladiac/fixes
Fixes
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/core/Messenger.h b/core/Messenger.h
index fa69d104..aa9611a4 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -196,10 +196,18 @@ int m_sendaction(Messenger *m, int friendnumber, uint8_t *action, uint32_t lengt
196 return -1 if failure */ 196 return -1 if failure */
197int setname(Messenger *m, uint8_t *name, uint16_t length); 197int setname(Messenger *m, uint8_t *name, uint16_t length);
198 198
199/* get our nickname 199/**
200 put it in name 200 * @brief Get your nickname.
201 return the length of the name*/ 201 *
202uint16_t getself_name(Messenger *m, uint8_t *name); 202 * @param[in] m The messanger context to use.
203 *
204 * @param[inout] name Pointer to a string for the name.
205 *
206 * @param[in] nlen The length of the string buffer.
207 *
208 * @return Return the length of the name, 0 on error.
209 */
210uint16_t getself_name(Messenger *m, uint8_t *name, uint16_t nlen);
203 211
204/* get name of friendnumber 212/* get name of friendnumber
205 put it in name 213 put it in name