From 00a974ce528277de9a95987cfda538ff18e38d8c Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 14 May 2018 09:56:26 -0700 Subject: [PATCH] callback.h: add epicsCallback alternative to CALLBACK Add epicsCallback as an IDE friendly alternative to CALLBACK. IDEs like qtcreator have long been confused by the use of CALLBACK, a name which has long been used by other libraries, which prevents code using it from being parsed correctly. --- src/ioc/db/callback.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ioc/db/callback.h b/src/ioc/db/callback.h index 34224f475..9011446dc 100644 --- a/src/ioc/db/callback.h +++ b/src/ioc/db/callback.h @@ -42,7 +42,9 @@ typedef struct callbackPvt { int priority; void *user; /*for use by callback user*/ void *timer; /*for use by callback itself*/ -}CALLBACK; +}epicsCallback; + +typedef epicsCallback CALLBACK; typedef void (*CALLBACKFUNC)(struct callbackPvt*);