1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 03:09:13 +00:00

Replace Uuid with plUUID EVERYWHERE.

This commit is contained in:
Darryl Pogue
2012-12-29 02:05:23 -08:00
parent a0641ba66b
commit bcf6e97d23
78 changed files with 427 additions and 892 deletions

View File

@ -62,7 +62,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
// uint32_t buildId; [optional]
// uint32_t branchId; [optional]
// uint32_t buildType; [optional]
// Uuid productId; [optional]
// plUUID productId; [optional]
const unsigned kConnHashFlagsIgnore = 0x01;
const unsigned kConnHashFlagsExactMatch = 0x02;
struct ISocketConnHash {
@ -70,7 +70,7 @@ struct ISocketConnHash {
unsigned buildId;
unsigned buildType;
unsigned branchId;
Uuid productId;
plUUID productId;
unsigned flags;
unsigned GetHash () const;
@ -102,7 +102,7 @@ unsigned ISocketConnHash::GetHash () const {
hash.Hash32(buildType);
if (branchId)
hash.Hash32(branchId);
if (productId != kNilGuid)
if (productId != kNilUuid)
hash.Hash(&productId, sizeof(productId));
*/
return hash.GetHash();
@ -145,7 +145,7 @@ bool ISocketConnHash::operator== (const ISocketConnHash & rhs) const {
if (productId != rhs.productId) {
if (rhs.flags & kConnHashFlagsExactMatch)
break;
if (productId != kNilGuid)
if (productId != kNilUuid)
break;
}
@ -171,7 +171,7 @@ static unsigned GetConnHash (
hash->buildId = 0;
hash->buildType = 0;
hash->branchId = 0;
hash->productId = 0;
hash->productId = kNilUuid;
hash->flags = 0;
// one uint8_t consumed
@ -325,7 +325,7 @@ void AsyncSocketRegisterNotifyProc (
unsigned buildId,
unsigned buildType,
unsigned branchId,
const Uuid & productId
const plUUID& productId
) {
ASSERT(connType != kConnTypeNil);
ASSERT(notifyProc);
@ -354,7 +354,7 @@ void AsyncSocketUnregisterNotifyProc (
unsigned buildId,
unsigned buildType,
unsigned branchId,
const Uuid & productId
const plUUID& productId
) {
ISocketConnHash hash;
hash.connType = connType;
@ -392,7 +392,7 @@ FAsyncNotifySocketProc AsyncSocketFindNotifyProc (
unsigned * buildId,
unsigned * buildType,
unsigned * branchId,
Uuid * productId
plUUID* productId
) {
for (;;) {
// Get the connType