Cleanup system-revision stuff.

* move system_revision.h to headers/private/libroot
* unify libroot's get_system_revision() (the one I introduced recently) with kernel's
  get_haiku_revision(), the function is now called get_haiku_revision() in the kernel
  and __get_haiku_revision() in libroot
* system_revision.c is now being built as part of libroot and as part of the kernel
* adjusted all callers of get_system_revision() accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41516 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2011-05-15 16:33:30 +00:00
parent cfd233613f
commit 22a7fe9695
7 changed files with 19 additions and 22 deletions
@@ -2,8 +2,8 @@
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_SYSTEM_REVISION_H
#define _SYSTEM_SYSTEM_REVISION_H
#ifndef _LIBROOT_SYSTEM_REVISION_H
#define _LIBROOT_SYSTEM_REVISION_H
/** The length of the system revision character array symbol living in libroot
@@ -17,7 +17,11 @@ extern "C" {
/** returns the system revision */
const char* get_system_revision();
#ifdef _KERNEL_MODE
const char* get_haiku_revision(void);
#else
const char* __get_haiku_revision(void);
#endif
#ifdef __cplusplus
@@ -25,4 +29,4 @@ const char* get_system_revision();
#endif
#endif /* _SYSTEM_SYSTEM_REVISION_H */
#endif /* _LIBROOT_SYSTEM_REVISION_H */