Click here to Skip to main content
12,630,940 members (31,101 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ C C#
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 21-Dec-12 3:58am
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100