anchor.diff:  // *  return 0 on error.
   // */
   //uint16_t tox_getselfname(Tox *tox, uint8_t *name, uint16_t nlen);
  -function tox_getselfname(tox: TTox; name: PByte; nlen: Word): Word;
  +function tox_getselfname(tox: TTox; name: PByte; nlen: Word): Word; cdecl; external TOX_LIBRARY;
   
   ///* Get name of friendnumber and put it in name.
   // * name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes.
  
positive.code: // *  return -1 if failure.
  // */
  //int tox_getname(Tox *tox, int friendnumber, uint8_t *name);
  function tox_getname(tox: TTox; friendnumber: Integer; name: PByte): Integer;
  
  ///* Set our user status.
  // * You are responsible for freeing status after.
  
negative.code: // *  return -1 if failure.
  // */
  //int tox_getclient_id(Tox *tox, int friend_id, uint8_t *client_id);
  function tox_getclient_id(tox: TTox; friend_id: Integer; client_id: PByte): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Remove a friend. */
  //int tox_delfriend(Tox *tox, int friendnumber);
  function tox_delfriend(tox: TTox; friendnumber: Integer): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Checks friend's connecting status.
  // *
  // *  return 1 if friend is connected to us (Online).
  // *  return 0 if friend is not connected to us (Offline).
  // *  return -1 on failure.
  // */
  //int tox_get_friend_connectionstatus(Tox *tox, int friendnumber);
  function tox_get_friend_connectionstatus(Tox: TTox; friendnumber: Integer): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Checks if there exists a friend with given friendnumber.
  // *
  // *  return 1 if friend exists.
  // *  return 0 if friend doesn't exist.
  // */
  //int tox_friend_exists(Tox *tox, int friendnumber);
  function tox_friend_exists(Tox: TTox; friendnumber: Integer): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Send a text chat message to an online friend.
  // *
  // *  return the message id if packet was successfully put into the send queue.
  // *  return 0 if it was not.
  // *
  // * You will want to retain the return value, it will be passed to your read_receipt callback
  // * if one is received.
  // * m_sendmessage_withid will send a message with the id of your choosing,
  // * however we can generate an id for you by calling plain m_sendmessage.
  // */
  //uint32_t tox_sendmessage(Tox *tox, int friendnumber, uint8_t *message, uint32_t length);
  //uint32_t tox_sendmessage_withid(Tox *tox, int friendnumber, uint32_t theid, uint8_t *message, uint32_t length);
  function tox_sendmessage(tox: TTox; friendnumber: Integer; message: PByte; length: Integer): Integer; cdecl; external TOX_LIBRARY;
  function tox_sendmessage_withid(tox: TTox; friendnumber: Integer; theid: Integer; message: PByte; length: Integer): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Send an action to an online friend.
  // *
  // *  return the message id if packet was successfully put into the send queue.
  // *  return 0 if it was not.
  // *
  // *  You will want to retain the return value, it will be passed to your read_receipt callback
  // *  if one is received.
  // *  m_sendaction_withid will send an action message with the id of your choosing,
  // *  however we can generate an id for you by calling plain m_sendaction.
  // */
  //uint32_t tox_sendaction(Tox *tox, int friendnumber, uint8_t *action, uint32_t length);
  //uint32_t tox_sendaction_withid(Tox *tox, int friendnumber, uint32_t theid, uint8_t *action, uint32_t length);
  function tox_sendaction(tox: TTox; friendnumber: Integer; action: PByte; length: Integer): Integer; cdecl; external TOX_LIBRARY;
  function tox_sendaction_withid(tox: TTox; friendnumber: Integer; theid: Cardinal; action: PByte; length: Integer): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Set friendnumber's nickname.
  // * name must be a string of maximum MAX_NAME_LENGTH length.
  // * length must be at least 1 byte.
  // * length is the length of name with the NULL terminator.
  // *
  // *  return 0 if success.
  // *  return -1 if failure.
  // */
  //int tox_setfriendname(Tox *tox, int friendnumber, uint8_t *name, uint16_t length);
  function tox_setfriendname(Tox: TTox; friendnumber: Integer; name: PByte; length: Word): Integer; cdecl; external TOX_LIBRARY;
  
  ///* Set our nickname.
  // * name must be a string of maximum MAX_NAME_LENGTH length.
  