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:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user