From: VMware, Inc <> Date: Thu, 22 Dec 2011 00:47:28 +0000 (-0800) Subject: Fix tools build. X-Git-Tag: 2011.12.20-562307~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b96a6f62aa2b7352cef0cbdafa11e8344ed3a986;p=thirdparty%2Fopen-vm-tools.git Fix tools build. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/msgidDefs.h b/open-vm-tools/lib/include/msgidDefs.h new file mode 100644 index 000000000..68e25fbce --- /dev/null +++ b/open-vm-tools/lib/include/msgidDefs.h @@ -0,0 +1,60 @@ +/********************************************************* + * Copyright (C) 2011 VMware, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation version 2.1 and no later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + *********************************************************/ + +/* + * msgidDefs.h -- + * + * Message ID magic definitions + */ + +#ifndef _MSGID_DEFS_H_ +#define _MSGID_DEFS_H_ + +#define INCLUDE_ALLOW_USERLEVEL +#define INCLUDE_ALLOW_VMCORE +#define INCLUDE_ALLOW_VMKERNEL +#include "includeCheck.h" + + +/* + * Message ID macros + * + * Use as in + * Msg_Append(MSGID(file.openFailed) "Failed to open file %s: %s.\n" + * fileName, Msg_ErrString()) + * Msg_Append(MSGID(mks.powerOnFailed) "Power on failed.\n") + * or + * Msg_Hint(TRUE, HINT_OK, + * MSGID(mks.noDGA) "No full screen mode.\n"). + * + * Don't make MSG_MAGIC_LEN (sizeof MSG_MAGIC - 1), since + * that may cause the string to be in the object file, even + * when it's not used at run time. And we are trying + * to avoid littering the output with the magic string. + * + * -- edward + */ + +#define MSG_MAGIC "@&!*@*@" +#define MSG_MAGIC_LEN 7 +#define MSGID(id) MSG_MAGIC "(msg." #id ")" +#define MSG_BUTTON_ID "(button." +#define MSG_BUTTON_ID_LEN 8 +#define BUTTONID(id) MSG_MAGIC MSG_BUTTON_ID #id ")" + +#endif // ifndef _MSGID_DEFS_H_