Add callback to allow replacement of runtime support library. Change-Id: I84ec56dfb29a0158015ebf31b3a73ac5bf34ef98
diff --git a/cpu_ref/rsd_cpu.h b/cpu_ref/rsd_cpu.h index 13a9656..47984d9 100644 --- a/cpu_ref/rsd_cpu.h +++ b/cpu_ref/rsd_cpu.h
@@ -32,6 +32,8 @@ typedef llvm::Module* (*RSLinkRuntimeCallback) (bcc::RSScript *, llvm::Module *, llvm::Module *); } // end namespace bcc; + +typedef const char* (*RSSelectRTCallback) (const char*, size_t); #endif namespace android { @@ -102,7 +104,8 @@ static RsdCpuReference * create(Context *c, uint32_t version_major, uint32_t version_minor, sym_lookup_t lfn, script_lookup_t slfn #ifndef RS_COMPATIBILITY_LIB - , bcc::RSLinkRuntimeCallback pLinkRuntimeCallback = NULL + , bcc::RSLinkRuntimeCallback pLinkRuntimeCallback = NULL, + RSSelectRTCallback pSelectRTCallback = NULL #endif ); virtual ~RsdCpuReference();