move command_result enum from Export to Core

develop
Myk Taylor 2023-07-03 11:53:46 -07:00
parent f111b69f2f
commit e7f5b1f949
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
3 changed files with 12 additions and 14 deletions

@ -72,6 +72,17 @@ namespace DFHack
struct Hide;
}
enum command_result
{
CR_LINK_FAILURE = -3, // RPC call failed due to I/O or protocol error
CR_NEEDS_CONSOLE = -2, // Attempt to call interactive command without console
CR_NOT_IMPLEMENTED = -1, // Command not implemented, or plugin not loaded
CR_OK = 0, // Success
CR_FAILURE = 1, // Failure
CR_WRONG_USAGE = 2, // Wrong arguments or ui state
CR_NOT_FOUND = 3 // Target object not found (for RPC mainly)
};
enum state_change_event
{
SC_UNKNOWN = -1,

@ -69,17 +69,3 @@ distribution.
#else
#define Wformat(type, fmtstr, vararg)
#endif
namespace DFHack
{
enum command_result
{
CR_LINK_FAILURE = -3, // RPC call failed due to I/O or protocol error
CR_NEEDS_CONSOLE = -2, // Attempt to call interactive command without console
CR_NOT_IMPLEMENTED = -1, // Command not implemented, or plugin not loaded
CR_OK = 0, // Success
CR_FAILURE = 1, // Failure
CR_WRONG_USAGE = 2, // Wrong arguments or ui state
CR_NOT_FOUND = 3 // Target object not found (for RPC mainly)
};
}

@ -26,6 +26,7 @@ distribution.
#include "Pragma.h"
#include "Export.h"
#include "ColorText.h"
#include "Core.h"
class CPassiveSocket;
class CActiveSocket;