| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2011 Intel Corporation. All rights reserved. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * You should have received a copy of the GNU General Public License |
|---|
| 15 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 16 | 4 | */ |
|---|
| 17 | 5 | |
|---|
| 18 | 6 | enum llcp_state { |
|---|
| .. | .. |
|---|
| 214 | 202 | void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *s); |
|---|
| 215 | 203 | void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock); |
|---|
| 216 | 204 | struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev); |
|---|
| 217 | | -struct nfc_llcp_local *nfc_llcp_local_get(struct nfc_llcp_local *local); |
|---|
| 218 | 205 | int nfc_llcp_local_put(struct nfc_llcp_local *local); |
|---|
| 219 | 206 | u8 nfc_llcp_get_sdp_ssap(struct nfc_llcp_local *local, |
|---|
| 220 | 207 | struct nfc_llcp_sock *sock); |
|---|
| .. | .. |
|---|
| 233 | 220 | |
|---|
| 234 | 221 | /* TLV API */ |
|---|
| 235 | 222 | int nfc_llcp_parse_gb_tlv(struct nfc_llcp_local *local, |
|---|
| 236 | | - u8 *tlv_array, u16 tlv_array_len); |
|---|
| 223 | + const u8 *tlv_array, u16 tlv_array_len); |
|---|
| 237 | 224 | int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, |
|---|
| 238 | | - u8 *tlv_array, u16 tlv_array_len); |
|---|
| 225 | + const u8 *tlv_array, u16 tlv_array_len); |
|---|
| 239 | 226 | |
|---|
| 240 | 227 | /* Commands API */ |
|---|
| 241 | 228 | void nfc_llcp_recv(void *data, struct sk_buff *skb, int err); |
|---|
| 242 | | -u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length); |
|---|
| 229 | +u8 *nfc_llcp_build_tlv(u8 type, const u8 *value, u8 value_length, u8 *tlv_length); |
|---|
| 243 | 230 | struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdres_tlv(u8 tid, u8 sap); |
|---|
| 244 | | -struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdreq_tlv(u8 tid, char *uri, |
|---|
| 231 | +struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdreq_tlv(u8 tid, const char *uri, |
|---|
| 245 | 232 | size_t uri_len); |
|---|
| 246 | 233 | void nfc_llcp_free_sdp_tlv(struct nfc_llcp_sdp_tlv *sdp); |
|---|
| 247 | 234 | void nfc_llcp_free_sdp_tlv_list(struct hlist_head *sdp_head); |
|---|