summaryrefslogtreecommitdiffstats
path: root/media/mediaserver/IcuUtils.h
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-06-09 17:42:34 +0100
committerNarayan Kamath <narayan@google.com>2015-06-10 08:52:17 +0000
commit2f3406517d1fd4486b8b90eb2635d784fad17a48 (patch)
tree55ff130219cf9ac6b68ebf58b0aa848159852b90 /media/mediaserver/IcuUtils.h
parent356f08476db6191cdcbad20caf69d7bd642a09b2 (diff)
downloadframeworks_av-2f3406517d1fd4486b8b90eb2635d784fad17a48.zip
frameworks_av-2f3406517d1fd4486b8b90eb2635d784fad17a48.tar.gz
frameworks_av-2f3406517d1fd4486b8b90eb2635d784fad17a48.tar.bz2
mediaserver : Initialize ICU on startup.
In change 2b29e461c in external/icu, we stopped hardcoding the ICU data path at compile time to avoid two sets of mappings in zygote forked processes. This means we'll have to tell ICU where its data is if the process in question isn't forked from the zygote. bug: 21705078 Change-Id: I829d9fa34fe8209aa8a6d55145ca26fdf0d934e8
Diffstat (limited to 'media/mediaserver/IcuUtils.h')
-rw-r--r--media/mediaserver/IcuUtils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/media/mediaserver/IcuUtils.h b/media/mediaserver/IcuUtils.h
new file mode 100644
index 0000000..52fab6d
--- /dev/null
+++ b/media/mediaserver/IcuUtils.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2015 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ICU_UTILS_H
+#define ICU_UTILS_H
+
+// Initializes ICU or dies trying. This must be called when the process
+// is single threaded.
+void initializeIcuOrDie();
+
+#endif // ICU_UTILS_H
+