aboutsummaryrefslogtreecommitdiff
path: root/webrtc/config.h
diff options
context:
space:
mode:
authoraluebs <aluebs@webrtc.org>2016-01-12 18:50:25 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-13 02:50:31 +0000
commit25249d92d3cf105bcc7b684c8924ccdbc9afcb93 (patch)
tree312952fd70020d4caf20fb32fbf6f8146d82af12 /webrtc/config.h
parente591f9377f33f3f725a30faecd1bef1a71fa6b99 (diff)
downloadwebrtc-25249d92d3cf105bcc7b684c8924ccdbc9afcb93.tar.gz
Use an explicit identifier in Config
This let's us use them to configure them when using WebRTC as an external library. One use case where this is necessary is in the Android OS. Review URL: https://codereview.webrtc.org/1538643004 Cr-Commit-Position: refs/heads/master@{#11231}
Diffstat (limited to 'webrtc/config.h')
-rw-r--r--webrtc/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webrtc/config.h b/webrtc/config.h
index 45a2ece416..06460ae359 100644
--- a/webrtc/config.h
+++ b/webrtc/config.h
@@ -16,6 +16,7 @@
#include <string>
#include <vector>
+#include "webrtc/common.h"
#include "webrtc/common_types.h"
#include "webrtc/typedefs.h"
@@ -128,6 +129,7 @@ struct VideoEncoderConfig {
struct NetEqCapacityConfig {
NetEqCapacityConfig() : enabled(false), capacity(0) {}
explicit NetEqCapacityConfig(int value) : enabled(true), capacity(value) {}
+ static const ConfigOptionID identifier = ConfigOptionID::kNetEqCapacityConfig;
bool enabled;
int capacity;
};
@@ -135,12 +137,14 @@ struct NetEqCapacityConfig {
struct NetEqFastAccelerate {
NetEqFastAccelerate() : enabled(false) {}
explicit NetEqFastAccelerate(bool value) : enabled(value) {}
+ static const ConfigOptionID identifier = ConfigOptionID::kNetEqFastAccelerate;
bool enabled;
};
struct VoicePacing {
VoicePacing() : enabled(false) {}
explicit VoicePacing(bool value) : enabled(value) {}
+ static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing;
bool enabled;
};