2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Mnemosyne LLC.
|
2022-08-08 18:05:39 +00:00
|
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
2022-01-20 18:27:56 +00:00
|
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2006-07-16 19:39:23 +00:00
|
|
|
|
2017-11-14 20:21:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
2009-12-15 00:51:39 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
2017-04-19 12:04:45 +00:00
|
|
|
#error only libtransmission should #include this header.
|
2009-12-15 00:51:39 +00:00
|
|
|
#endif
|
|
|
|
|
2021-12-15 21:25:42 +00:00
|
|
|
#include <cstddef> // size_t
|
|
|
|
|
2023-11-03 17:03:26 +00:00
|
|
|
#include "libtransmission/tr-macros.h" // tr_peer_id_t
|
2020-08-11 18:11:55 +00:00
|
|
|
|
2009-05-29 19:17:12 +00:00
|
|
|
/**
|
2010-01-19 19:37:00 +00:00
|
|
|
* @brief parse a peer-id into a human-readable client name and version number
|
2009-05-29 19:17:12 +00:00
|
|
|
* @ingroup utils
|
|
|
|
*/
|
2022-09-03 07:13:22 +00:00
|
|
|
void tr_clientForId(char* buf, size_t buflen, tr_peer_id_t peer_id);
|