Skip to content

Commit

Permalink
callbacks: make raw callbacks except
Browse files Browse the repository at this point in the history
  • Loading branch information
aberaud committed Sep 11, 2023
1 parent 7cc743f commit dbebaae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/opendht/callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ using CertificateStoreQuery = std::function<std::vector<std::shared_ptr<crypto::
using DoneCallback = std::function<void(bool success, const std::vector<std::shared_ptr<Node>>& nodes)>;
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;
typedef bool (*GetCallbackRaw)(std::shared_ptr<Value>, void *user_data) noexcept(false);
typedef bool (*ValueCallbackRaw)(std::shared_ptr<Value>, bool expired, void *user_data) noexcept(false);
typedef void (*DoneCallbackRaw)(bool, std::vector<std::shared_ptr<Node>>*, void *user_data) noexcept(false);
typedef void (*ShutdownCallbackRaw)(void *user_data) noexcept(false);
typedef void (*DoneCallbackSimpleRaw)(bool, void *user_data) noexcept(false);
typedef bool (*FilterRaw)(const Value&, void *user_data) noexcept(false);


OPENDHT_PUBLIC GetCallbackSimple bindGetCb(GetCallbackRaw raw_cb, void* user_data);
Expand Down

0 comments on commit dbebaae

Please sign in to comment.