Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow std::function as callback for AdsNotification #204

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ccvca
Copy link
Contributor

@ccvca ccvca commented Jun 13, 2023

Implementation of #203

As AdsSyncAddDeviceNotificationReqEx must not be changed, I couldn't find any other solution than adapting AdsLib/AdsDevice.cpp.

PS: As I use this in my tooling, the other pull request of me #202 is also included. In case this is accepted, I can clean up and cherry-pick this.

Resolves: #203 and #142

ccvca added 2 commits May 30, 2023 08:53
Use the library like so:

find_package(Threads REQUIRED)
find_package(ads REQUIRED)

add_executable(myAdsApp myAdsApp.cpp)
target_link_libraries(myAdsApp ads::ads)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use std::function for callback
1 participant