Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
11396c31
Commit
11396c31
authored
3 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
c: add dht_version()
parent
955af06e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
c/opendht.cpp
+5
-0
5 additions, 0 deletions
c/opendht.cpp
c/opendht_c.h
+2
-0
2 additions, 0 deletions
c/opendht_c.h
with
7 additions
and
0 deletions
c/opendht.cpp
+
5
−
0
View file @
11396c31
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
c/opendht_c.h
+
2
−
0
View file @
11396c31
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment