Makes the sid of a closed DataChannel available to reuse per the spec.

BUG=2646
R=pthatcher@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/16579004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6468 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
jiayl@webrtc.org
2014-06-17 16:02:46 +00:00
parent a685c9df62
commit 2eaac188bb
6 changed files with 84 additions and 4 deletions

View File

@ -78,4 +78,12 @@ void LogAssert(const char* function, const char* file, int line,
}
}
bool IsOdd(int n) {
return (n & 0x1);
}
bool IsEven(int n) {
return !IsOdd(n);
}
} // namespace talk_base

View File

@ -116,6 +116,10 @@ typedef void (*AssertLogger)(const char* function,
// only by one component.
void SetCustomAssertLogger(AssertLogger logger);
bool IsOdd(int n);
bool IsEven(int n);
} // namespace talk_base
#if ENABLE_DEBUG