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
7cc743ff
Commit
7cc743ff
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
callbacks: make raw callbacks noexcept
parent
3b02cee4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/opendht/callbacks.h
+8
-9
8 additions, 9 deletions
include/opendht/callbacks.h
with
8 additions
and
9 deletions
include/opendht/callbacks.h
+
8
−
9
View file @
7cc743ff
...
@@ -173,18 +173,17 @@ using IdentityAnnouncedCb = std::function<void(bool)>;
...
@@ -173,18 +173,17 @@ using IdentityAnnouncedCb = std::function<void(bool)>;
using
PublicAddressChangedCb
=
std
::
function
<
void
(
std
::
vector
<
SockAddr
>
)
>
;
using
PublicAddressChangedCb
=
std
::
function
<
void
(
std
::
vector
<
SockAddr
>
)
>
;
using
CertificateStoreQuery
=
std
::
function
<
std
::
vector
<
std
::
shared_ptr
<
crypto
::
Certificate
>>
(
const
InfoHash
&
pk_id
)
>
;
using
CertificateStoreQuery
=
std
::
function
<
std
::
vector
<
std
::
shared_ptr
<
crypto
::
Certificate
>>
(
const
InfoHash
&
pk_id
)
>
;
typedef
bool
(
*
GetCallbackRaw
)(
std
::
shared_ptr
<
Value
>
,
void
*
user_data
);
typedef
bool
(
*
ValueCallbackRaw
)(
std
::
shared_ptr
<
Value
>
,
bool
expired
,
void
*
user_data
);
using
DoneCallback
=
std
::
function
<
void
(
bool
success
,
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
nodes
)
>
;
using
DoneCallback
=
std
::
function
<
void
(
bool
success
,
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
nodes
)
>
;
typedef
void
(
*
DoneCallbackRaw
)(
bool
,
std
::
vector
<
std
::
shared_ptr
<
Node
>>*
,
void
*
user_data
);
typedef
void
(
*
ShutdownCallbackRaw
)(
void
*
user_data
);
typedef
void
(
*
DoneCallbackSimpleRaw
)(
bool
,
void
*
user_data
);
typedef
bool
(
*
FilterRaw
)(
const
Value
&
,
void
*
user_data
);
using
DoneCallbackSimple
=
std
::
function
<
void
(
bool
success
)
>
;
using
DoneCallbackSimple
=
std
::
function
<
void
(
bool
success
)
>
;
typedef
bool
(
*
GetCallbackRaw
)(
std
::
shared_ptr
<
Value
>
,
void
*
user_data
)
noexcept
;
typedef
bool
(
*
ValueCallbackRaw
)(
std
::
shared_ptr
<
Value
>
,
bool
expired
,
void
*
user_data
)
noexcept
;
typedef
void
(
*
DoneCallbackRaw
)(
bool
,
std
::
vector
<
std
::
shared_ptr
<
Node
>>*
,
void
*
user_data
)
noexcept
;
typedef
void
(
*
ShutdownCallbackRaw
)(
void
*
user_data
)
noexcept
;
typedef
void
(
*
DoneCallbackSimpleRaw
)(
bool
,
void
*
user_data
)
noexcept
;
typedef
bool
(
*
FilterRaw
)(
const
Value
&
,
void
*
user_data
)
noexcept
;
OPENDHT_PUBLIC
GetCallbackSimple
bindGetCb
(
GetCallbackRaw
raw_cb
,
void
*
user_data
);
OPENDHT_PUBLIC
GetCallbackSimple
bindGetCb
(
GetCallbackRaw
raw_cb
,
void
*
user_data
);
OPENDHT_PUBLIC
GetCallback
bindGetCb
(
GetCallbackSimple
cb
);
OPENDHT_PUBLIC
GetCallback
bindGetCb
(
GetCallbackSimple
cb
);
OPENDHT_PUBLIC
ValueCallback
bindValueCb
(
ValueCallbackRaw
raw_cb
,
void
*
user_data
);
OPENDHT_PUBLIC
ValueCallback
bindValueCb
(
ValueCallbackRaw
raw_cb
,
void
*
user_data
);
...
...
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