Skip to content

Commit

Permalink
client: Explicitely use int as socket type in SWIG
Browse files Browse the repository at this point in the history
For some reason SWIG doesn't seem to pick this
up automatically from the typedefs.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
  • Loading branch information
flichtenheld committed Mar 6, 2024
1 parent 282075f commit 8c007de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/ovpncli.i
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
#include "ovpncli.hpp"
%}

#ifndef OPENVPN_PLATFORM_WIN
// simplify interface, not picked up automatically
%apply int { openvpn_io::detail::socket_type };
%apply int { asio::detail::socket_type };
#endif

// ignore these ClientAPI::OpenVPNClient bases
%ignore openvpn::ClientAPI::LogReceiver;
%ignore openvpn::ExternalTun::Factory;
Expand Down

0 comments on commit 8c007de

Please sign in to comment.