summaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-08-07 05:56:27 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-08-07 05:56:27 +0200
commit6e1b0c3310dea0357b96ee0f504e9fd36139de13 (patch)
tree839f26896f315a82050a4a96480f07b7cb5dc45f /device.h
parentMerge "minui: Move to Soong." am: f2bc68cfe1 am: ea105889a5 am: bf40c42766 (diff)
parentMerge "Dynamically load device-specific recovery UI lib." am: 9cf9b689d9 am: 75acf24207 (diff)
downloadandroid_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.tar
android_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.tar.gz
android_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.tar.bz2
android_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.tar.lz
android_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.tar.xz
android_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.tar.zst
android_bootable_recovery-6e1b0c3310dea0357b96ee0f504e9fd36139de13.zip
Diffstat (limited to 'device.h')
-rw-r--r--device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/device.h b/device.h
index cbecc4371..a6ad62788 100644
--- a/device.h
+++ b/device.h
@@ -119,8 +119,12 @@ class Device {
std::unique_ptr<RecoveryUI> ui_;
};
+// Disable name mangling, as this function will be loaded via dlsym(3).
+extern "C" {
+
// The device-specific library must define this function (or the default one will be used, if there
// is no device-specific library). It returns the Device object that recovery should use.
Device* make_device();
+}
#endif // _DEVICE_H