Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
ba47c6cc
Commit
ba47c6cc
authored
Jun 06, 2021
by
abhijeetbhagat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stun: Make the headers usable from C++ code
Add the relevant ifdef extern C bits
parent
ca1e7d45
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
stun/stunagent.h
stun/stunagent.h
+8
-0
stun/stunmessage.h
stun/stunmessage.h
+7
-0
No files found.
stun/stunagent.h
View file @
ba47c6cc
...
...
@@ -72,6 +72,10 @@ typedef struct stun_agent_t StunAgent;
#include "stunmessage.h"
#include "debug.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* StunCompatibility:
* @STUN_COMPATIBILITY_RFC3489: Use the STUN specifications compatible with
...
...
@@ -526,4 +530,8 @@ bool stun_agent_forget_transaction (StunAgent *agent, StunTransactionId id);
*/
void
stun_agent_set_software
(
StunAgent
*
agent
,
const
char
*
software
);
#ifdef __cplusplus
}
#endif
#endif
/* _STUN_AGENT_H */
stun/stunmessage.h
View file @
ba47c6cc
...
...
@@ -74,6 +74,10 @@
typedef
struct
_StunMessage
StunMessage
;
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* StunClass:
* @STUN_REQUEST: A STUN Request message
...
...
@@ -1016,5 +1020,8 @@ bool stun_optional (uint16_t t);
*/
const
char
*
stun_strerror
(
StunError
code
);
#ifdef __cplusplus
}
#endif
#endif
/* _STUN_MESSAGE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment