Skip to content
Snippets Groups Projects
Commit 11396c31 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

c: add dht_version()

parent 955af06e
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,11 @@ extern "C" { ...@@ -32,6 +32,11 @@ extern "C" {
#include <errno.h> #include <errno.h>
const char* dht_version()
{
return dht::version();
}
// dht::InfoHash // dht::InfoHash
inline dht_infohash dht_infohash_to_c(const dht::InfoHash& h) { inline dht_infohash dht_infohash_to_c(const dht::InfoHash& h) {
......
...@@ -36,6 +36,8 @@ struct OPENDHT_C_PUBLIC dht_data_view { ...@@ -36,6 +36,8 @@ struct OPENDHT_C_PUBLIC dht_data_view {
}; };
typedef struct dht_data_view dht_data_view; typedef struct dht_data_view dht_data_view;
OPENDHT_C_PUBLIC const char* dht_version();
// dht::Blob // dht::Blob
struct OPENDHT_C_PUBLIC dht_blob; struct OPENDHT_C_PUBLIC dht_blob;
typedef struct dht_blob dht_blob; typedef struct dht_blob dht_blob;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment