Click here to Skip to main content
Rate this: bad
good
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 at 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 at 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 at 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
0 DamithSL 495
1 Maciej Los 258
2 OriginalGriff 229
3 BillWoodruff 170
4 Zoltán Zörgő 165
0 OriginalGriff 7,934
1 DamithSL 6,084
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,174
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2014
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