forked from radarsat1/liblo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redefine opaque types as pointers to structs.
Warning: This may break source compatibility! This fixes casting-related errors in the C++ wrapper related to passing a lo::ServerThread object to lo::Address::send_from, see radarsat1#101 To summarize, the C++ template cannot differentiate between lo_server and lo_server_thread because they are both (void*), and therefore performs the wrong cast. This can be fixed by making these opaque types pointers to different types instead of all pointing to void. It could be possible to redefine just these types, but this patch takes this to the full extent and redefines all the opaque pointers so that they are different types, to avoid any potential similar issues. It is more correct, but could lead to incompatibility with older code, particularly because it redefines the lo_method_handler prototype.
- Loading branch information
Showing
5 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters