在c编程中回调函数 [英] Call back function in c programming

查看:114
本文介绍了在c编程中回调函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个zigbee堆栈。在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

只是unsigned char的typedef。 Char是一个参数。我怀疑在参数后添加

is nothing but a typedef for unsigned char. Char is a parameter . My doubt is what it means when you add

ZB_CALLBACK

意味着什么。

ZB_CALLBACK

是我的疑问。任何人都可以指导我吗?

is my doubt . Can anyone guide me ?

推荐答案

查看API信息这里 [ ^ ]。

ZB_CALLBACK是一个宏设置,允许你在我假设某种类型的请求时定义一个C回调函数。
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.


这篇关于在c编程中回调函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆