52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/***************************************************************************
|
|
*
|
|
* Copyright 2015-2019 BES.
|
|
* All rights reserved. All unpublished rights reserved.
|
|
*
|
|
* No part of this work may be used or reproduced in any form or by any
|
|
* means, or stored in a database or retrieval system, without prior written
|
|
* permission of BES.
|
|
*
|
|
* Use of this work is governed by a license granted by BES.
|
|
* This work contains confidential and proprietary information of
|
|
* BES. which is protected by copyright, trade secret,
|
|
* trademark and other intellectual property rights.
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef __MAP_INTERNAL_H__
|
|
#define __MAP_INTERNAL_H__
|
|
|
|
#include "bluetooth.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//------ STATE MACHINE ------//
|
|
typedef unsigned int btif_map_sm_event_t;
|
|
#define BTIF_MAP_SM_EVENT_GLOBAL_BASE 0x00000000
|
|
#define BTIF_MAP_SM_EVENT_STATE_ENTER (BTIF_MAP_SM_EVENT_GLOBAL_BASE+1)
|
|
|
|
typedef void (*btif_map_sm_event_handler_t)(void *instance, void *param);
|
|
|
|
typedef struct {
|
|
union {
|
|
} p;
|
|
} btif_map_sm_event_param_t;
|
|
typedef struct {
|
|
btif_map_sm_event_t event;
|
|
btif_map_sm_event_handler_t handler;
|
|
} btif_map_sm_state_handler_t;
|
|
typedef struct {
|
|
btif_map_sm_state_handler_t *handlers;
|
|
} btif_map_sm_state_t;
|
|
|
|
//------ SMS ------//
|
|
#define BTIF_MAP_SM_EVENT_SMS_BASE 0x00000000
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAP_INTERNAL_H__ */ |