diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-24 03:49:06 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-24 03:49:06 -0700 |
commit | b0149318fafe2ae8de2eaf1eed6d691936e92d3d (patch) | |
tree | 5b301b2932fe9c87f46751b24a28a1e1dec7e030 /toxcore/tox.h | |
parent | 5d25bc100c5d251d28c5b5faa88917cc9e29ed5a (diff) | |
parent | 23e03b0ba94df9640a978529edaf75b412dbf8a2 (diff) |
Merge pull request #604 from JFreegman/master
made setfriendname() part of public api
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 9c810418..db3621dc 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -214,6 +214,16 @@ uint32_t tox_sendmessage_withid(Tox *tox, int friendnumber, uint32_t theid, uint | |||
214 | */ | 214 | */ |
215 | int tox_sendaction(Tox *tox, int friendnumber, uint8_t *action, uint32_t length); | 215 | int tox_sendaction(Tox *tox, int friendnumber, uint8_t *action, uint32_t length); |
216 | 216 | ||
217 | /* Set friendnumber's nickname. | ||
218 | * name must be a string of maximum MAX_NAME_LENGTH length. | ||
219 | * length must be at least 1 byte. | ||
220 | * length is the length of name with the NULL terminator. | ||
221 | * | ||
222 | * return 0 if success. | ||
223 | * return -1 if failure. | ||
224 | */ | ||
225 | int tox_setfriendname(void *tox, int friendnumber, uint8_t *name, uint16_t length); | ||
226 | |||
217 | /* Set our nickname. | 227 | /* Set our nickname. |
218 | * name must be a string of maximum MAX_NAME_LENGTH length. | 228 | * name must be a string of maximum MAX_NAME_LENGTH length. |
219 | * length must be at least 1 byte. | 229 | * length must be at least 1 byte. |