Move sm_dump_handles to core/logic.

This commit is contained in:
David Anderson
2015-09-20 14:33:10 -07:00
parent c853050265
commit 168b779786
8 changed files with 74 additions and 82 deletions
+4 -3
View File
@@ -35,7 +35,8 @@
#include <IHandleSys.h>
#include <stdio.h>
#include <sm_namehashset.h>
#include <am-string.h>
#include <amtl/am-string.h>
#include <amtl/am-function.h>
#include "common_logic.h"
#define HANDLESYS_MAX_HANDLES (1<<15)
@@ -111,7 +112,7 @@ struct QHandleType
}
};
typedef void (HANDLE_REPORTER)(const char *str, ...);
typedef ke::Lambda<void(const char *)> HandleReporter;
class HandleSystem :
public IHandleSys
@@ -163,7 +164,7 @@ public: //IHandleSystem
const HandleAccess *pAccess,
HandleError *err);
void Dump(HANDLE_REPORTER rep);
void Dump(const HandleReporter &reporter);
/* Bypasses security checks. */
Handle_t FastCloneHandle(Handle_t hndl);