summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2015-01-05 16:49:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-05 16:49:36 +0000
commit75afcc1fa311448cdc1cbb9a9637c066627b7947 (patch)
tree4046e88124970fcff1685c8537c771c9522e2cf2
parent5c97c4e1b0a45e52f463eeef37cd672372644613 (diff)
parentc0fcdc07cc3fd44a1fd27fc9b84a5be3651cea22 (diff)
downloadframeworks_av-75afcc1fa311448cdc1cbb9a9637c066627b7947.zip
frameworks_av-75afcc1fa311448cdc1cbb9a9637c066627b7947.tar.gz
frameworks_av-75afcc1fa311448cdc1cbb9a9637c066627b7947.tar.bz2
Merge "Use define for drm property keys instead of defining as char pointers"
-rw-r--r--include/ndk/NdkMediaDrm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ndk/NdkMediaDrm.h b/include/ndk/NdkMediaDrm.h
index 10afdd9..3c312a9 100644
--- a/include/ndk/NdkMediaDrm.h
+++ b/include/ndk/NdkMediaDrm.h
@@ -327,24 +327,24 @@ media_status_t AMediaDrm_releaseSecureStops(AMediaDrm *,
/**
* String property name: identifies the maker of the DRM engine plugin
*/
-const char *PROPERTY_VENDOR = "vendor";
+#define PROPERTY_VENDOR "vendor"
/**
* String property name: identifies the version of the DRM engine plugin
*/
-const char *PROPERTY_VERSION = "version";
+#define PROPERTY_VERSION "version"
/**
* String property name: describes the DRM engine plugin
*/
-const char *PROPERTY_DESCRIPTION = "description";
+#define PROPERTY_DESCRIPTION "description"
/**
* String property name: a comma-separated list of cipher and mac algorithms
* supported by CryptoSession. The list may be empty if the DRM engine
* plugin does not support CryptoSession operations.
*/
-const char *PROPERTY_ALGORITHMS = "algorithms";
+#define PROPERTY_ALGORITHMS "algorithms"
/**
* Read a DRM engine plugin String property value, given the property name string.
@@ -361,7 +361,7 @@ media_status_t AMediaDrm_getPropertyString(AMediaDrm *, const char *propertyName
* Byte array property name: the device unique identifier is established during
* device provisioning and provides a means of uniquely identifying each device.
*/
-const char *PROPERTY_DEVICE_UNIQUE_ID = "deviceUniqueId";
+#define PROPERTY_DEVICE_UNIQUE_ID "deviceUniqueId"
/**
* Read a DRM engine plugin byte array property value, given the property name string.