2023-02-11 21:49:42 +01:00
|
|
|
// This file Copyright © 2008-2023 Mnemosyne LLC.
|
2022-08-08 13:05:39 -05:00
|
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
2022-01-20 12:27:56 -06: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 23:21:28 +03:00
|
|
|
#pragma once
|
|
|
|
|
2009-12-15 00:51:39 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
2017-04-19 15:04:45 +03:00
|
|
|
#error only libtransmission should #include this header.
|
2009-12-15 00:51:39 +00:00
|
|
|
#endif
|
|
|
|
|
2021-12-15 15:25:42 -06:00
|
|
|
#include <cstddef> // size_t
|
|
|
|
|
2022-09-03 02:13:22 -05:00
|
|
|
#include "tr-macros.h" // tr_peer_id_t
|
2020-08-11 13:11:55 -05: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 02:13:22 -05:00
|
|
|
void tr_clientForId(char* buf, size_t buflen, tr_peer_id_t peer_id);
|