| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1359 人关注过本帖
标题:求助:关于typedef和结构体问题
取消只看楼主 加入收藏
wkyj
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2021-2-17
结帖率:100%
收藏
已结贴  问题点数:10 回复次数:1 
求助:关于typedef和结构体问题
程序代码:
typedef struct {
    ril_cmd_id_t cmd_id;    /**< A unique ID  */
    ril_request_mode_t mode;    /**< AT command mode, */
    ril_result_code_t res_code;    /**< Final response code */
    void *cmd_param;    /**< A pointer to the subparameter structure, user should cast it to the right data structure specified for each command. */
    char *test_mode_str;    /**< A pointer to the response string  */
    uint32_t test_mode_str_len;    /**< The response string  */
} ril_cmd_response_t;

typedef int (*ril_cmd_response_callback_t)(ril_cmd_response_t *response);

extern  ril_status_t   ril_request_query_network_state(ril_request_mode_t mode,
        int32_t display_mode,
        ril_cmd_response_callback_t callback,
        void *user_data);


    问题:1,我知道代码中ril_cmd_response_t是结构体,但是 typedef int (*ril_cmd_response_callback_t)(ril_cmd_response_t *response);又是什么?
          2,如何读取 ril_cmd_response_callback_t定义的callback变量中的结构体成员?
          3,谢谢
搜索更多相关主题的帖子: response typedef the string 结构体 
2021-02-17 10:54
wkyj
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2021-2-17
收藏
得分:0 
回复 2楼 jklqwe111
谢谢!
2021-02-17 16:48
快速回复:求助:关于typedef和结构体问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011951 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved