Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm currently developing a zigbee stack . Have a lot of basic doubts in C .
void zb_mlme_get_request(zb_uint8_t param) ZB_CALLBACK;

I dont understand the above mentioned prototype .

I do understand this is a void function .
zb_uint8_t
is nothing but a typedef for unsigned char. Char is a parameter . My doubt is what it means when you add
ZB_CALLBACK
after parameters .
ZB_CALLBACK
is my doubt . Can anyone guide me ?
Posted
Comments
Fredrik Bornander 21-Dec-12 9:45am    
Can you see what the ZB_CALLBACK macro does? I'm guessing it's just a marker so that they know what is callbacks.
Jochen Arndt 21-Dec-12 9:53am    
Can't help you really but all uppercase letters is usally a definition. Have a look in the API header files. It must be defined somewhere.
steven8Gerrard 21-Dec-12 10:11am    
have searched it cant find the macro. It is not defined as far i know . say if i have defined. What it means? Does it link? What the macro does here?

1 solution

Check out the API information here[^].
ZB_CALLBACK is a macro set up to allow you to define a C callback function when I'm assuming a request of some kind is made.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900