]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Thu, 22 Dec 2011 00:47:01 +0000 (16:47 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 22 Dec 2011 00:47:01 +0000 (16:47 -0800)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/msgid.h

index bfb8dc5aadd6c60729c5af139f98e94fb230c39f..59503d1b8764ed48fee5f29d23fa44925fb5389d 100644 (file)
@@ -29,6 +29,7 @@
 #define INCLUDE_ALLOW_VMCORE
 #define INCLUDE_ALLOW_VMKERNEL
 #include "includeCheck.h"
+#include "msgidDefs.h"
 
 #include "vm_basic_defs.h"
 
 #endif
 
 
-/*
- * 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 ")"
-
 // the X hides MSG_MAGIC so it won't appear in the object file
 #define MSG_MAGICAL(s) (strncmp(s, MSG_MAGIC"X", MSG_MAGIC_LEN) == 0)