mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Remove more old Callback code
This commit is contained in:
parent
d3de7c9237
commit
5161cb6bd2
@ -337,66 +337,3 @@ bool EQEmuLog::Dump(LogIDs id, uint8* data, uint32 size, uint32 cols, uint32 ski
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQEmuLog::SetCallback(LogIDs id, msgCallbackFmt proc)
|
|
||||||
{
|
|
||||||
if (!logFileValid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (id >= MaxLogID) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EQEmuLog::SetCallback(LogIDs id, msgCallbackBuf proc)
|
|
||||||
{
|
|
||||||
if (!logFileValid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (id >= MaxLogID) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EQEmuLog::SetCallback(LogIDs id, msgCallbackPva proc)
|
|
||||||
{
|
|
||||||
if (!logFileValid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (id >= MaxLogID) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EQEmuLog::SetAllCallbacks(msgCallbackFmt proc)
|
|
||||||
{
|
|
||||||
if (!logFileValid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int r;
|
|
||||||
for (r = Status; r < MaxLogID; r++) {
|
|
||||||
SetCallback((LogIDs)r, proc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EQEmuLog::SetAllCallbacks(msgCallbackBuf proc)
|
|
||||||
{
|
|
||||||
if (!logFileValid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int r;
|
|
||||||
for (r = Status; r < MaxLogID; r++) {
|
|
||||||
SetCallback((LogIDs)r, proc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EQEmuLog::SetAllCallbacks(msgCallbackPva proc)
|
|
||||||
{
|
|
||||||
if (!logFileValid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int r;
|
|
||||||
for (r = Status; r < MaxLogID; r++) {
|
|
||||||
SetCallback((LogIDs)r, proc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@ -91,17 +91,6 @@ public:
|
|||||||
MaxLogID /* Max, used in functions to get the max log ID */
|
MaxLogID /* Max, used in functions to get the max log ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
//these are callbacks called for each
|
|
||||||
typedef void (* msgCallbackBuf)(LogIDs id, const char *buf, uint8 size, uint32 count);
|
|
||||||
typedef void (* msgCallbackFmt)(LogIDs id, const char *fmt, va_list ap);
|
|
||||||
typedef void (* msgCallbackPva)(LogIDs id, const char *prefix, const char *fmt, va_list ap);
|
|
||||||
|
|
||||||
void SetAllCallbacks(msgCallbackFmt proc);
|
|
||||||
void SetAllCallbacks(msgCallbackBuf proc);
|
|
||||||
void SetAllCallbacks(msgCallbackPva proc);
|
|
||||||
void SetCallback(LogIDs id, msgCallbackFmt proc);
|
|
||||||
void SetCallback(LogIDs id, msgCallbackBuf proc);
|
|
||||||
void SetCallback(LogIDs id, msgCallbackPva proc);
|
|
||||||
bool write(LogIDs id, const char *fmt, ...);
|
bool write(LogIDs id, const char *fmt, ...);
|
||||||
bool writePVA(LogIDs id, const char *prefix, const char *fmt, va_list args);
|
bool writePVA(LogIDs id, const char *prefix, const char *fmt, va_list args);
|
||||||
bool Dump(LogIDs id, uint8* data, uint32 size, uint32 cols=16, uint32 skip=0);
|
bool Dump(LogIDs id, uint8* data, uint32 size, uint32 cols=16, uint32 skip=0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user