-
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.
Add native bridge, starting from RTCDataConnection
We want to avoid blocking cross-thread calls that node-gtk provides. So we create a sort-of thin wrapper library that marshalls the events natively from WebRTC event thread to main thread.
- Loading branch information
1 parent
3967cb3
commit d0f54ec
Showing
14 changed files
with
2,820 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/node_modules/ | ||
/lib/ | ||
/lib-native/ | ||
/src-native/compile_commands.json | ||
/src-native/.cache/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#if defined _WIN32 || defined __CYGWIN__ | ||
#ifdef BUILDING_NGWNATIVE | ||
#define NGWNATIVE_PUBLIC __declspec(dllexport) | ||
#else | ||
#define NGWNATIVE_PUBLIC __declspec(dllimport) | ||
#endif | ||
#else | ||
#ifdef BUILDING_NGWNATIVE | ||
#define NGWNATIVE_PUBLIC __attribute__ ((visibility ("default"))) | ||
#else | ||
#define NGWNATIVE_PUBLIC | ||
#endif | ||
#endif |
Oops, something went wrong.