mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 00:34:39 +08:00
59545d760f
This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 48 License: LGPL-2.1-or-later mesh/mesh-mgmt.h mesh/mesh-mgmt.c mesh/net-keys.c mesh/mesh-io-api.h mesh/mesh.h mesh/net-keys.h mesh/model.h mesh/util.h mesh/appkey.c mesh/cfgmod.h mesh/appkey.h mesh/prov.h mesh/prov-acceptor.c mesh/net.c mesh/dbus.h mesh/friend.h mesh/mesh-io-generic.c mesh/main.c mesh/util.c mesh/dbus.c mesh/error.h mesh/mesh-config-json.c mesh/agent.h mesh/pb-adv.c mesh/crypto.c mesh/crypto.h mesh/friend.c mesh/pb-adv.h mesh/provision.h mesh/mesh-config.h mesh/mesh-io-generic.h mesh/agent.c mesh/cfgmod-server.c mesh/mesh-io.h mesh/keyring.h mesh/net.h mesh/keyring.c mesh/mesh-defs.h mesh/mesh.c mesh/rpl.c mesh/manager.c mesh/model.c mesh/mesh-io.c mesh/node.c mesh/prov-initiator.c mesh/rpl.h mesh/node.h mesh/manager.h
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
*
|
|
* BlueZ - Bluetooth protocol stack for Linux
|
|
*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
*
|
|
*/
|
|
|
|
struct mesh_io_private;
|
|
|
|
typedef bool (*mesh_io_init_t)(struct mesh_io *io, void *opts,
|
|
mesh_io_ready_func_t cb, void *user_data);
|
|
typedef bool (*mesh_io_destroy_t)(struct mesh_io *io);
|
|
typedef bool (*mesh_io_caps_t)(struct mesh_io *io, struct mesh_io_caps *caps);
|
|
typedef bool (*mesh_io_send_t)(struct mesh_io *io,
|
|
struct mesh_io_send_info *info,
|
|
const uint8_t *data, uint16_t len);
|
|
typedef bool (*mesh_io_register_t)(struct mesh_io *io, const uint8_t *filter,
|
|
uint8_t len, mesh_io_recv_func_t cb,
|
|
void *user_data);
|
|
typedef bool (*mesh_io_deregister_t)(struct mesh_io *io, const uint8_t *filter,
|
|
uint8_t len);
|
|
typedef bool (*mesh_io_tx_cancel_t)(struct mesh_io *io, const uint8_t *pattern,
|
|
uint8_t len);
|
|
|
|
struct mesh_io_api {
|
|
mesh_io_init_t init;
|
|
mesh_io_destroy_t destroy;
|
|
mesh_io_caps_t caps;
|
|
mesh_io_send_t send;
|
|
mesh_io_register_t reg;
|
|
mesh_io_deregister_t dereg;
|
|
mesh_io_tx_cancel_t cancel;
|
|
};
|
|
|
|
struct mesh_io {
|
|
enum mesh_io_type type;
|
|
const struct mesh_io_api *api;
|
|
struct mesh_io_private *pvt;
|
|
};
|
|
|
|
struct mesh_io_table {
|
|
enum mesh_io_type type;
|
|
const struct mesh_io_api *api;
|
|
};
|