File: agent.h

package info (click to toggle)
bluez 5.83-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 25,664 kB
  • sloc: ansic: 471,418; python: 4,751; sh: 4,580; makefile: 1,042; xml: 126
file content (32 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (3)
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
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2017  Intel Corporation. All rights reserved.
 *
 *
 */

#define MAX_HEXADECIMAL_OOB_LEN	128
#define DECIMAL_OOB_LEN		4
#define MAX_ASCII_OOB_LEN		16

typedef enum {
	NONE,
	HEXADECIMAL,
	DECIMAL,
	ASCII,
	OUTPUT,
} oob_type_t;

typedef void (*agent_input_cb)(oob_type_t type, void *input, uint16_t len,
					void *user_data);
bool agent_input_request(oob_type_t type, uint16_t max_len, const char *desc,
					agent_input_cb cb, void *user_data);

bool agent_output_request(const char* str);
void agent_output_request_cancel(void);
bool agent_completion(void);
bool agent_input(const char *input);
void agent_release(void);