coturn / coturn

coturn TURN server project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Will PRs to support compiling coturn as C++ code instead of C code be accepted?

jonesmz opened this issue · comments

I wish to use the coturn codebase as a C++ program, as my $dayjob uses it, and has a large (proprietary) C++ codebase that we would integrate some libraries from. E.g. we have an in-house logging library.

I am not proposing to convert coturn into a C++ program. I just want to provide patches that will allow the codebase to be able to compile as C++ without compiler errors. I think this should be possible, as many C code project can be compiled as C++.

Without having dug into this yet, my speculation is that most of the changes necessary will be around pointers, such as adding explicit casts instead of relying on implicit cast from void*.

This would benefit the larger coturn community by allowing other organizations with a similar situation to mine to do the same. E.g. integrate with their own C++ libraries.

c is a subset of C++. You don't need to make any changes to use it in C++ projects