context_hub_module_t 结构体参考文档
   context_hub_module_t 结构体参考文档
  
 
  
   #include <
   
    context_hub.h
   
   >
  
 
    数据字段 | 
  |
| struct hw_module_t | 常见 | 
| int(* | get_hubs )(struct context_hub_module_t *module, const struct context_hub_t **list) | 
| int(* | subscribe_messages )(uint32_t hub_id, context_hub_callback cbk, void *cookie) | 
| int(* | send_message )(uint32_t hub_id, const struct hub_message_t *msg) | 
详细说明
每个硬件模块都必须有一个名为 HAL_MODULE_INFO_SYM 的数据结构,并且此数据结构的字段必须以 hw_module_t 开头,后跟模块专用信息。
定义位于文件 context_hub.h 的 391 行 。
字段文档
| struct hw_module_t common | 
定义位于文件 context_hub.h 的 392 行。
| int(* get_hubs)(struct context_hub_module_t *module, const struct context_hub_t **list) | 
| int(* send_message)(uint32_t hub_id, const struct hub_message_t *msg) | 
| int(* subscribe_messages)(uint32_t hub_id, context_hub_callback cbk, void *cookie) | 
此结构体的文档是根据以下文件生成的:
- hardware/libhardware/include/hardware/ context_hub.h