Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow std::function as callback for AdsNotification#204

Draft
ccvca wants to merge 2 commits intoBeckhoff:master from
ccvca:func_cb
Draft

Allow std::function as callback for AdsNotification #204
ccvca wants to merge 2 commits intoBeckhoff:master from
ccvca:func_cb

Conversation

@ccvca
Copy link
Contributor

@ccvca ccvca commented Jun 13, 2023
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Use std::function for callback

1 participant

AltStyle によって変換されたページ (->オリジナル) /