diff options
author | shennetsind <ind@henn.et> | 2013-02-14 19:13:14 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-02-14 19:22:56 -0200 |
commit | 82005a99f5b1cca68e9fb1ac6b1614c815e4bd45 (patch) | |
tree | 219766035a17c63286c5be2b3699a07868810b21 /src/common/core.h | |
parent | ef503ce5ad834d4601d6420bddf85655b6428c24 (diff) | |
download | hercules-82005a99f5b1cca68e9fb1ac6b1614c815e4bd45.tar.gz hercules-82005a99f5b1cca68e9fb1ac6b1614c815e4bd45.tar.bz2 hercules-82005a99f5b1cca68e9fb1ac6b1614c815e4bd45.tar.xz hercules-82005a99f5b1cca68e9fb1ac6b1614c815e4bd45.zip |
Introducing Git Hash
Added 'Git Hash' way to identify where you last updated your working copy (it won't detect your local changes' hash -- intended). Also Implemented HERC_UNKNOWN_VER, a simple way to detect whether get_svn_revision or get_git_hash failed to detect (before you'd need to strncmp for "unknown" or similars)
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/core.h')
-rw-r--r-- | src/common/core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/core.h b/src/common/core.h index f619d821f..8007e6036 100644 --- a/src/common/core.h +++ b/src/common/core.h @@ -16,6 +16,8 @@ extern char **arg_v; extern int buildbotflag; #endif +#define HERC_UNKNOWN_VER '\x02' + /// @see E_CORE_ST extern int runflag; extern char *SERVER_NAME; @@ -31,7 +33,8 @@ enum { extern char SERVER_TYPE; extern int parse_console(const char* buf); -extern const char *get_svn_revision(void); +const char *get_svn_revision(void); +const char *get_git_hash (void); extern int do_init(int,char**); extern void set_server_type(void); extern void do_abort(void); |