/*
 * Bluetooth Presense Protocol
 *
 * Copyright (C) 2003 Digium, Inc.
 *
 * Mark Spencer <markster@digium.com>
 *
 * Distributed under the terms of the GNU General Public License
 * Version 2 or later at your option.
 *
 */

#ifndef _BTPP_H
#define _BTPP_H

#define BTP_PORT 		3856

#define BTP_CMD_REPORT	1
#define BTP_CMD_ACK		2
#define BTP_CMD_NAK		3
#define BTP_CMD_UNKNOWN	4

#define BTP_CMD_RESPONSE 0x8000

union btp_report_data {
	struct {
		unsigned int flags;
		char unit[18];
		unsigned short score;
		unsigned char pad[8];
	} data;
	unsigned char raw[32];
} __attribute__ ((__packed__));

struct btp_msg {
	unsigned short cmd;
	unsigned short seqno;
	unsigned char data[0];
} __attribute__ ((__packed__));

#endif
