#
# Copyright (C) 2020 Xiaomi Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

menu "Connection Manager"

config CONNMAN
	tristate "Connection Manager deamon"
	depends on LIB_DBUS
	default n
	---help---
		Connection Manager service program, is a deamon process

if CONNMAN

config CONNMAN_PRIORITY
	int "CONNMAN task priority"
	default 100

config CONNMAN_STACKSIZE
	int "CONNMAN stack size"
	default 8192

config CONNMAN_CTL_STACKSIZE
	int "CONNMAN control client stack size"
	default 8192

config CONNMAN_STORAGEDIR
	string "CONNMAN storage directory"
	default "/data/connman"

config CONNMAN_VPN_STORAGEDIR
	string "CONNMAN VPN storage directory"
	default CONNMAN_STORAGEDIR

config CONNMAN_CONFIGDIR
	string "CONNMAN config directory"
	default CONNMAN_STORAGEDIR

config CONNMAN_STATEDIR
	string "CONNMAN state directory"
	default CONNMAN_STORAGEDIR

config CONNMAN_LIB_WAPI
	bool "Enable the Wapi plugin"
	depends on WIRELESS_WAPI
	default y

config CONNMAN_LIB_BLUETOOTH
	bool "Enable the Bluetooth plugin"
	default n

config CONNMAN_CTL
	bool "Connection Manager control client"
	default y
	---help---
		Connection Manager control client, is a command line tool

config CONNMAN_WASM
       bool "Compile to Wasm module"
       default n
       ---help---
		Apply the same approach to compile connmand as a Wasm module
		instead of a builtin app, only available if any Wasm runtime is enabled.

endif

endmenu