mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 05:11:19 +00:00 
			
		
		
		
	 32242988ed
			
		
	
	
		32242988ed
		
			
		
	
	
	
	
		
			
			Apply clang-format for C source files in folder core/app-mgr, core/app-framework, and test-tools. And rename folder component_test to component-test, update zephyr build document. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			374 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			374 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2019 Intel Corporation.  All rights reserved.
 | |
|  * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 | |
|  */
 | |
| 
 | |
| #include "wasm_app.h"
 | |
| 
 | |
| void
 | |
| on_init()
 | |
| {
 | |
|     printf("Hello, I was installed.\n");
 | |
| }
 | |
| 
 | |
| void
 | |
| on_destroy()
 | |
| {
 | |
|     /* real destroy work including killing timer and closing sensor is
 | |
|      * accomplished in wasm app library version of on_destroy() */
 | |
| }
 |