summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/Messenger.h b/core/Messenger.h
index 0a3ae309..0b8aa7aa 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -71,6 +71,19 @@ int m_friendstatus(int friendnumber);
71//return 0 if it was not. 71//return 0 if it was not.
72int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length); 72int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length);
73 73
74//Set our nickname
75//name must be a string of maximum MAX_NAME_LENGTH length.
76//return 0 if success
77//return -1 if failure
78int setname(uint8_t * name, uint16_t length);
79
80
81//get name of friendnumber
82//put it in name
83//name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes.
84//return 0 if success
85//return -1 if failure
86int getname(int friendnumber, uint8_t * name);
74 87
75//set the function that will be executed when a friend request is received. 88//set the function that will be executed when a friend request is received.
76//function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) 89//function format is function(uint8_t * public_key, uint8_t * data, uint16_t length)