1
/*********************************************************
2
* Copyright (C) 2011 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
22
* Message ID magic definitions
25
#ifndef _MSGID_DEFS_H_
26
#define _MSGID_DEFS_H_
28
#define INCLUDE_ALLOW_USERLEVEL
29
#define INCLUDE_ALLOW_VMCORE
30
#define INCLUDE_ALLOW_VMKERNEL
31
#include "includeCheck.h"
38
* Msg_Append(MSGID(file.openFailed) "Failed to open file %s: %s.\n"
39
* fileName, Msg_ErrString())
40
* Msg_Append(MSGID(mks.powerOnFailed) "Power on failed.\n")
42
* Msg_Hint(TRUE, HINT_OK,
43
* MSGID(mks.noDGA) "No full screen mode.\n").
45
* Don't make MSG_MAGIC_LEN (sizeof MSG_MAGIC - 1), since
46
* that may cause the string to be in the object file, even
47
* when it's not used at run time. And we are trying
48
* to avoid littering the output with the magic string.
53
#define MSG_MAGIC "@&!*@*@"
54
#define MSG_MAGIC_LEN 7
55
#define MSGID(id) MSG_MAGIC "(msg." #id ")"
56
#define MSG_BUTTON_ID "(button."
57
#define MSG_BUTTON_ID_LEN 8
58
#define BUTTONID(id) MSG_MAGIC MSG_BUTTON_ID #id ")"
60
#endif // ifndef _MSGID_DEFS_H_