OpenVPN / OpenVPN/openvpn3

Need C# interface for Xamarin Android development based on OpenVPN library

Open
#60 30 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

I'm currently trying to use SWiG to create an interface for ovpncli.hpp in order to be able to access the API from my C# project.

First of all, I would like to know why Visual Studio (tested with 2015 and 2017) ignores all directories in the OpenVPN project folder as like as shown in the image https://imgur.com/a/cXoj6Nj. I basically added the OpenVPN project to my current project using Visual Studio.

And my main problem is that SWiG ignores all specified headers if I compile the file ovpncli.i with the following command:

C:\swigwin-3.0.12\swig -c++ -csharp -outdir C:\swigwin-3.0.12\Generated ovpncli.i

Please check this image https://imgur.com/a/3hOoy7u

Sorry for posting this in the issues section but this request is really urgent for me. I apologize for the inconvenience.

Thank you.

Sincerely,
Chris

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ovpncli.hpp and ovpncli.i, then reproduce the reported SWIG command using the paths in the issue. Investigate why the specified headers are ignored and why the OpenVPN project directories are not shown in Visual Studio. Done means a usable C# interface for the ovpncli API in Xamarin Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp, csharp
Domain
api, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.