blob: 78e2c577e1c98f2dda9806b0a20f4991568776c3 [file] [log] [blame]
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:13 +00001/*
kjellander1afca732016-02-07 20:46:45 -08002 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:13 +00003 *
kjellander1afca732016-02-07 20:46:45 -08004 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:13 +00009 */
henrike@webrtc.org28e20752013-07-10 00:45:36 +000010
kjellandera96e2d72016-02-04 23:52:28 -080011#include "webrtc/media/base/mediaengine.h"
henrike@webrtc.org28e20752013-07-10 00:45:36 +000012
henrike@webrtc.org28e20752013-07-10 00:45:36 +000013#if !defined(DISABLE_MEDIA_ENGINE_FACTORY)
14
henrike@webrtc.org0481f152014-08-19 14:56:59 +000015#if defined(HAVE_WEBRTC_VOICE) && defined(HAVE_WEBRTC_VIDEO)
kjellandera96e2d72016-02-04 23:52:28 -080016#include "webrtc/media/webrtc/webrtcmediaengine.h"
henrike@webrtc.org0481f152014-08-19 14:56:59 +000017#endif // HAVE_WEBRTC_VOICE && HAVE_WEBRTC_VIDEO
18
henrike@webrtc.org40b3b682014-03-03 18:30:11 +000019#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif // HAVE_CONFIG
henrike@webrtc.org28e20752013-07-10 00:45:36 +000022
23namespace cricket {
buildbot@webrtc.orgbb2d6582014-06-20 14:58:56 +000024
25MediaEngineFactory::MediaEngineCreateFunction
26 MediaEngineFactory::create_function_ = NULL;
henrike@webrtc.org0481f152014-08-19 14:56:59 +000027
henrike@webrtc.org40b3b682014-03-03 18:30:11 +000028MediaEngineFactory::MediaEngineCreateFunction
29 MediaEngineFactory::SetCreateFunction(MediaEngineCreateFunction function) {
30 MediaEngineCreateFunction old_function = create_function_;
31 create_function_ = function;
32 return old_function;
henrike@webrtc.org0481f152014-08-19 14:56:59 +000033}
henrike@webrtc.org40b3b682014-03-03 18:30:11 +000034
henrike@webrtc.org28e20752013-07-10 00:45:36 +000035}; // namespace cricket
36
37#endif // DISABLE_MEDIA_ENGINE_FACTORY