michael@0: /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsEncoderDecoderUtils_h__ michael@0: #define nsEncoderDecoderUtils_h__ michael@0: michael@0: #define NS_UNICODEDECODER_NAME "Charset Decoders" michael@0: #define NS_UNICODEENCODER_NAME "Charset Encoders" michael@0: michael@0: #define NS_DATA_BUNDLE_CATEGORY "uconv-charset-data" michael@0: #define NS_TITLE_BUNDLE_CATEGORY "uconv-charset-titles" michael@0: michael@0: #define NS_CONVERTER_REGISTRY_START \ michael@0: static const mozilla::Module::CategoryEntry kUConvCategories[] = { michael@0: michael@0: #define NS_CONVERTER_REGISTRY_END \ michael@0: { nullptr } \ michael@0: }; michael@0: michael@0: #define NS_UCONV_REG_UNREG_DECODER(_Charset, _CID) \ michael@0: { NS_UNICODEDECODER_NAME, _Charset, "" }, michael@0: michael@0: #define NS_UCONV_REG_UNREG_ENCODER(_Charset, _CID) \ michael@0: { NS_UNICODEENCODER_NAME, _Charset, "" }, michael@0: michael@0: #define NS_UCONV_REG_UNREG(_Charset, _DecoderCID, _EncoderCID) \ michael@0: NS_UCONV_REG_UNREG_DECODER(_Charset, *) \ michael@0: NS_UCONV_REG_UNREG_ENCODER(_Charset, *) michael@0: michael@0: #endif