• Main Page
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

lib/include/vmware/tools/i18n.h

Go to the documentation of this file.
00001 /*********************************************************
00002  * Copyright (C) 2010 VMware, Inc. All rights reserved.
00003  *
00004  * This program is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License as published
00006  * by the Free Software Foundation version 2.1 and no later version.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00010  * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
00011  * License for more details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this program; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
00016  *
00017  *********************************************************/
00018 
00019 #ifndef _I18N_H_
00020 #define _I18N_H_
00021 
00053 #include <glib.h>
00054 
00055 /*
00056  * Copied from msgid.h to avoid exposing VMware internal headers. Don't
00057  * change these values. Ever.
00058  */
00059 #define MSG_MAGIC       "@&!*@*@"
00060 #define MSG_MAGIC_LEN   7
00061 #define MSGID(id)       MSG_MAGIC "(" #id ")"
00062 
00071 #define SU_(msgid, en) VMTools_GetString(VMW_TEXT_DOMAIN, MSGID(msgid) en)
00072 
00073 #if defined(_WIN32)
00074 
00082 #  define SW_(msgid, en) VMTools_GetUtf16String(VMW_TEXT_DOMAIN, MSGID(msgid) en)
00083 #endif
00084 
00085 G_BEGIN_DECLS
00086 
00087 void
00088 VMTools_BindTextDomain(const char *domain,
00089                        const char *locale,
00090                        const char *catdir);
00091 
00092 const char *
00093 VMTools_GetString(const char *domain,
00094                   const char *msgid);
00095 
00096 #if defined(_WIN32)
00097 const wchar_t *
00098 VMTools_GetUtf16String(const char *domain,
00099                        const char *msgid);
00100 #endif
00101 
00102 G_END_DECLS
00103 
00106 #endif /* _I18N_H_ */
00107 

Generated on Tue Oct 5 2010 for open-vm-tools 2010.04.25 by  doxygen 1.7.1