open-vm-tools 13.0.10: lib/include/vmware/tools/i18n.h Source File

open-vm-tools 13.0.10

i18n.h
Go to the documentation of this file.
1/*********************************************************
2 * Copyright (C) 2010-2016 VMware, Inc. All rights reserved.
3 *
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.
7 *
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.
12 *
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.
16 *
17 *********************************************************/
18
19#ifndef _I18N_H_
20#define _I18N_H_
21
49
50#include <glib.h>
51
52/*
53 * Copied from msgid.h to avoid exposing VMware internal headers. Don't
54 * change these values. Ever.
55 */
56#define MSG_MAGIC "@&!*@*@"
57#define MSG_MAGIC_LEN 7
58#define MSGID(id) MSG_MAGIC "(" #id ")"
59
68#define SU_(msgid, en) VMTools_GetString(VMW_TEXT_DOMAIN, MSGID(msgid) en)
69
70#if defined(_WIN32)
79# define SW_(msgid, en) VMTools_GetUtf16String(VMW_TEXT_DOMAIN, MSGID(msgid) en)
80#endif
81
82G_BEGIN_DECLS
83
84void
85 VMTools_BindTextDomain(const char *domain,
86 const char *locale,
87 const char *catdir);
88
89const char *
90 VMTools_GetString(const char *domain,
91 const char *msgid);
92
93#if defined(_WIN32)
94const wchar_t *
95VMTools_GetUtf16String(const char *domain,
96 const char *msgid);
97#endif
98
99G_END_DECLS
100
102
103#endif /* _I18N_H_ */
104
VMTools_GetString
const char * VMTools_GetString(const char *domain, const char *msgid)
Definition i18n.c:750
VMTools_BindTextDomain
G_BEGIN_DECLS void VMTools_BindTextDomain(const char *domain, const char *locale, const char *catdir)
Definition i18n.c:656