summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/core/Messenger.h b/core/Messenger.h
index c4e7cc1e..518becc9 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -128,6 +128,8 @@ typedef struct Messenger {
128 Friend *friendlist; 128 Friend *friendlist;
129 uint32_t numfriends; 129 uint32_t numfriends;
130 130
131 uint64_t last_LANdiscovery;
132
131 void (*friend_message)(struct Messenger *m, int, uint8_t *, uint16_t, void *); 133 void (*friend_message)(struct Messenger *m, int, uint8_t *, uint16_t, void *);
132 void *friend_message_userdata; 134 void *friend_message_userdata;
133 void (*friend_action)(struct Messenger *m, int, uint8_t *, uint16_t, void *); 135 void (*friend_action)(struct Messenger *m, int, uint8_t *, uint16_t, void *);
@@ -222,17 +224,13 @@ int m_sendaction(Messenger *m, int friendnumber, uint8_t *action, uint32_t lengt
222 return -1 if failure */ 224 return -1 if failure */
223int setname(Messenger *m, uint8_t *name, uint16_t length); 225int setname(Messenger *m, uint8_t *name, uint16_t length);
224 226
225/** 227/*
226 * @brief Get your nickname. 228 Get your nickname.
227 * 229 m The messanger context to use.
228 * @param[in] m The messanger context to use. 230 name Pointer to a string for the name.
229 * 231 nlen The length of the string buffer.
230 * @param[inout] name Pointer to a string for the name. 232 returns Return the length of the name, 0 on error.
231 * 233*/
232 * @param[in] nlen The length of the string buffer.
233 *
234 * @return Return the length of the name, 0 on error.
235 */
236uint16_t getself_name(Messenger *m, uint8_t *name, uint16_t nlen); 234uint16_t getself_name(Messenger *m, uint8_t *name, uint16_t nlen);
237 235
238/* get name of friendnumber 236/* get name of friendnumber