Bug 1885565 - Part 1: Add mozac_ic_avatar_circle_24 to ui-icons r=android-reviewers...
[gecko.git] / intl / l10n / LocalizationBindings.h
blobfbf4db2db0c9f98f367343526cfdfa5f36688ed3
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_intl_l10n_LocalizationBindings_h
6 #define mozilla_intl_l10n_LocalizationBindings_h
8 #include "mozilla/intl/localization_ffi_generated.h"
10 #include "mozilla/RefPtr.h"
12 namespace mozilla {
14 template <>
15 struct RefPtrTraits<intl::ffi::LocalizationRc> {
16 static void AddRef(const intl::ffi::LocalizationRc* aPtr) {
17 intl::ffi::localization_addref(aPtr);
19 static void Release(const intl::ffi::LocalizationRc* aPtr) {
20 intl::ffi::localization_release(aPtr);
24 } // namespace mozilla
26 #endif