Commit ba47c6cc authored by abhijeetbhagat's avatar abhijeetbhagat

stun: Make the headers usable from C++ code

Add the relevant ifdef extern C bits
parent ca1e7d45
......@@ -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 */
......@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment