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
34typedef void(*GenericCallback)();
35
36int _callbackGetHandle(_In_z_ const char *cbtype, _In_ GenericCallback func);
37_Ret_opt_valid_
38GenericCallback _callbackGetFunc(_In_z_ const char *cbtype, int handle);
39
52#define callbackGetHandle(cbtype, func) _callbackGetHandle(#cbtype, (GenericCallback)((cbtype)func))
53
66#define callbackGetFunc(cbtype, handle) ((cbtype)_callbackGetFunc(#cbtype, handle))
67
69// end of utils_cbhandle group
void(* GenericCallback)()
Generic callback function pointer type.
Definition cbhandle.h:34