CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
cbhandle.h
Go to the documentation of this file.
1
26
27#pragma once
28
29// Generic callback handles
30
31#include <cx/cx.h>
32
33CX_C_BEGIN
34
36typedef void (*GenericCallback)();
37
38int _callbackGetHandle(_In_z_ const char* cbtype, _In_ GenericCallback func);
39_Ret_opt_valid_ GenericCallback _callbackGetFunc(_In_z_ const char* cbtype, int handle);
40
53#define callbackGetHandle(cbtype, func) _callbackGetHandle(#cbtype, (GenericCallback)((cbtype)func))
54
67#define callbackGetFunc(cbtype, handle) ((cbtype)_callbackGetFunc(#cbtype, handle))
68
70// end of utils_cbhandle group
71
72CX_C_END
void(* GenericCallback)()
Generic callback function pointer type.
Definition cbhandle.h:36