Cleaning up lpxclient and lpxserver in preparation for redirect implementation
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
//
|
||||
// The actual contents of the datapack depends on the type of invocation:
|
||||
//
|
||||
// AccessKind::INVALID:
|
||||
//
|
||||
// Nothing.
|
||||
//
|
||||
// AccessKind::LUA_CALL:
|
||||
// AccessKind::INVOKE_LUA_CALL:
|
||||
//
|
||||
// A lua function call. The class name, the function name, and then
|
||||
// the function arguments.
|
||||
@@ -25,14 +21,14 @@
|
||||
//
|
||||
// Line number in ascii.
|
||||
//
|
||||
// AccessKind::INVOKE_TICK:
|
||||
//
|
||||
// Nothing.
|
||||
//
|
||||
// AccessKind::INVOKE_LUA_SOURCE:
|
||||
//
|
||||
// Packaged lua sourcecode. See drvutil::package_lua_source.
|
||||
//
|
||||
// AccessKind::INVOKE_TICK:
|
||||
//
|
||||
// Nothing.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
@@ -64,6 +60,14 @@ public:
|
||||
void serialize(StreamBuffer *sb) const;
|
||||
void deserialize(StreamBuffer *sb);
|
||||
|
||||
// Return true if the kind is a valid kind of invocation
|
||||
// to go over the network.
|
||||
static bool is_valid_network_kind(AccessKind k)
|
||||
{ return k == AccessKind::INVOKE_FLUSH_PRINTS ||
|
||||
k == AccessKind::INVOKE_LUA_CALL ||
|
||||
k == AccessKind::INVOKE_LUA_EXPR ||
|
||||
k == AccessKind::INVOKE_LUA_SOURCE; }
|
||||
|
||||
eng::string debug_string() const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user