michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ 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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef FMRADIOCOMMON_H_ michael@0: #define FMRADIOCOMMON_H_ michael@0: michael@0: #include "mozilla/Observer.h" michael@0: michael@0: #undef FM_LOG michael@0: #if defined(ANDROID) michael@0: #include michael@0: #define FM_LOG(FMRADIO_LOG_INFO, args...) \ michael@0: __android_log_print(ANDROID_LOG_INFO, \ michael@0: FMRADIO_LOG_INFO, \ michael@0: ## args) michael@0: #else michael@0: #define FM_LOG(args...) michael@0: #endif michael@0: michael@0: #define BEGIN_FMRADIO_NAMESPACE \ michael@0: namespace mozilla { namespace dom { michael@0: #define END_FMRADIO_NAMESPACE \ michael@0: } /* namespace dom */ } /* namespace mozilla */ michael@0: michael@0: BEGIN_FMRADIO_NAMESPACE michael@0: michael@0: enum FMRadioEventType michael@0: { michael@0: FrequencyChanged, michael@0: EnabledChanged michael@0: }; michael@0: michael@0: typedef mozilla::Observer FMRadioEventObserver; michael@0: typedef mozilla::ObserverList FMRadioEventObserverList; michael@0: michael@0: END_FMRADIO_NAMESPACE michael@0: michael@0: #endif /* FMRADIOCOMMON_H_ */ michael@0: