From 523c070f86a34c68404a3c2451c150e6f9c3f6f2 Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 14 Mar 2011 12:01:02 +0000 Subject: [PATCH] move Hook type definition in cfg/compiler.h for a more generic usage git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4765 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/compiler.h | 3 +++ bertos/mware/event.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bertos/cfg/compiler.h b/bertos/cfg/compiler.h index ac60848f..3a2f34c2 100644 --- a/bertos/cfg/compiler.h +++ b/bertos/cfg/compiler.h @@ -450,6 +450,9 @@ #endif #endif +/** User defined callback type */ +typedef void (*Hook)(void *); + /** Bulk storage large enough for both pointers or integers. */ typedef void * iptr_t; diff --git a/bertos/mware/event.h b/bertos/mware/event.h index 941a332f..30c1c815 100644 --- a/bertos/mware/event.h +++ b/bertos/mware/event.h @@ -153,9 +153,6 @@ struct Process; #endif -/// User defined callback type -typedef void (*Hook)(void *); - typedef struct Event { void (*action)(struct Event *); -- 2.25.1