hosthf_private.h

来自「蓝牙HANDFREE软件源代码」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef _HOSTHF_PRIVATE_H
#define _HOSTHF_PRIVATE_H

#include <csrtypes.h>
#include "hf_msg.h"

#include <hshf_lib.h>
#include <panic.h>
#include <stdlib.h>



/* Set the hands free app version number */
#define HF_VERSION  1



/* Macros used when sending messages to an external GUI */
#define MAKE_GUI_MSG_WITH_LEN(TYPE,LEN) HF_TO_GUI_MSG_T *msg = (HF_TO_GUI_MSG_T *)PanicNull(malloc(sizeof(TYPE##_T)+2+(LEN))); msg->length = sizeof(TYPE##_T)+2+(LEN); msg->type = TYPE;

#define MAKE_GUI_MSG(TYPE) MAKE_GUI_MSG_WITH_LEN(TYPE, 0)


/* hosthf_main.c - send a message over host comms to the GUI */
void hostHfPutGuiMsg(void *msg);

/* hosthf_send.c - dial the supplied number request */
void hostHfDialNumberReq(const DIAL_NUMBER_REQ_T *req);

/* hosthf_send.c - dial the supplied memory location request */
void hostHfDialMemoryReq(const DIAL_MEMORY_REQ_T *req);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?