Fix PowerLog and ProtocolBuffer stubs

This commit is contained in:
Ariel Abreu 2020-09-01 10:05:50 -04:00
parent 4e1cc7dc9c
commit 3daebaec32
No known key found for this signature in database
GPG Key ID: ECF8C2B9E8AD3E6B
2 changed files with 9 additions and 9 deletions

View File

@ -239,7 +239,7 @@ void* PLLogRegisteredAggregateEvent(void)
return NULL;
}
void* PLLogRegisteredEvent(void)
void* PLLogRegisteredEvent(int client_id, CFStringRef event_name, CFDictionaryRef event_dictionary, void* last_parameter)
{
if (verbose) puts("STUB: PLLogRegisteredEvent called");
return NULL;
@ -251,7 +251,7 @@ void* PLLogRegisteredEventFilterByInterval(void)
return NULL;
}
void* PLLogTimeSensitiveRegisteredEvent(void)
void* PLLogTimeSensitiveRegisteredEvent(int client_id, CFStringRef event_name, CFDictionaryRef event_dictionary, void* last_parameter)
{
if (verbose) puts("STUB: PLLogTimeSensitiveRegisteredEvent called");
return NULL;
@ -281,7 +281,7 @@ void* PLShouldLogEvent(void)
return NULL;
}
void* PLShouldLogRegisteredEvent(void)
void* PLShouldLogRegisteredEvent(int client_id, CFStringRef event_name)
{
if (verbose) puts("STUB: PLShouldLogRegisteredEvent called");
return NULL;

View File

@ -164,25 +164,25 @@ BOOL PBReaderPlaceMark(PBDataReader* reader, PBDataReaderMark* mark)
uint16_t PBReaderReadBigEndianFixed16(PBDataReader* reader)
{
if (verbose) puts("STUB: PBReaderReadBigEndianFixed16 called");
return;
return 0;
}
uint32_t PBReaderReadBigEndianFixed32(PBDataReader* reader)
{
if (verbose) puts("STUB: PBReaderReadBigEndianFixed32 called");
return;
return 0;
}
uint64_t PBReaderReadBigEndianFixed64(PBDataReader* reader)
{
if (verbose) puts("STUB: PBReaderReadBigEndianFixed64 called");
return;
return 0;
}
NSData* PBReaderReadData(PBDataReader* reader)
{
if (verbose) puts("STUB: PBReaderReadData called");
return;
return NULL;
}
NSString* PBReaderReadString(PBDataReader* reader)
@ -194,10 +194,10 @@ NSString* PBReaderReadString(PBDataReader* reader)
void* PBReaderReadVarIntBuf(PBDataReader* reader)
{
if (verbose) puts("STUB: PBReaderReadVarIntBuf called");
return;
return NULL;
}
void PBReaderRecallMark(PBDataReader* reader, PBDataReaderMark* mark);
void PBReaderRecallMark(PBDataReader* reader, PBDataReaderMark* mark)
{
if (verbose) puts("STUB: PBReaderRecallMark called");
return;