hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2017  Intel Corporation. All rights reserved.
 *
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
#include <stdio.h>
#include "util.h"
#include "shell.h"
 
static void print_string(const char *str, void *user_data)
{
   pr_info("%s\n", str);
}
 
void bt_shell_hexdump(void *buf, size_t len)
{
   util_hexdump(' ', buf, len, print_string, NULL);
}
 
void bt_shell_usage()
{
   return;
}
 
void bt_shell_prompt_input(const char *label, const char *msg,
           bt_shell_prompt_input_func func, void *user_data)
{
   return;
}
 
int bt_shell_release_prompt(const char *input)
{
   return 0;
}
 
void bt_shell_init(int argc, char **argv, const struct bt_shell_opt *opt)
{
   return;
}
 
int bt_shell_run(void)
{
   return 0;
}
 
void bt_shell_cleanup(void)
{
}
 
void bt_shell_quit(int status)
{
   return;
}
 
void bt_shell_noninteractive_quit(int status)
{
}
 
bool bt_shell_set_menu(const struct bt_shell_menu *menu)
{
   return true;
}
 
bool bt_shell_add_submenu(const struct bt_shell_menu *menu)
{
   return true;
}
 
void bt_shell_set_prompt(const char *string)
{
   return;
}
 
bool bt_shell_attach(int fd)
{
   return true;
}
 
bool bt_shell_detach(void)
{
   return true;
}
 
void bt_shell_set_env(const char *name, void *value)
{
   return;
}
 
void *bt_shell_get_env(const char *name)
{
   return NULL;
}