Blob: vendor.h
Blob id: 996ed44cb18e15895ebaad4c9034bbc9f01fe482
Size: 774 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org> * * */ #include <stdint.h> struct vendor_ocf { uint16_t ocf; const char *str; void (*cmd_func) (uint16_t index, const void *data, uint8_t size); uint8_t cmd_size; bool cmd_fixed; void (*rsp_func) (uint16_t index, const void *data, uint8_t size); uint8_t rsp_size; bool rsp_fixed; }; struct vendor_evt { uint8_t evt; const char *str; void (*evt_func) (struct timeval *tv, uint16_t index, const void *data, uint8_t size); uint8_t evt_size; bool evt_fixed; }; void vendor_event(uint16_t manufacturer, const void *data, uint8_t size); |