// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

package main

import (
	"github.com/godbus/dbus"
)

const (
	nmConnDir = "/etc/NetworkManager/system-connections"

	kfSectionConnection = "connection"
	kfSectionWIFI       = "wifi"
	kfKeyType           = "type"
	kfKeyMac            = "mac-address"
	kfKeyMacBlacklist   = "mac-address-blacklist"
	kfKeySeenBSSID      = "seen-bssids"
	kfKeyInterfaceName  = "interface-name"

	nmSyncVersion = "1.0"
)

func (*Daemon) NetworkGetConnections() (data []byte, busErr *dbus.Error) {
	return nil, &dbus.Error{
        Name: "org.freedesktop.DBus.Error.NotSupported",
        Body: []interface{}{"Method is deprecated"},
    }
}

func (*Daemon) NetworkSetConnections(data []byte) *dbus.Error {
	return &dbus.Error{
        Name: "org.freedesktop.DBus.Error.NotSupported",
        Body: []interface{}{"Method is deprecated"},
    }
}
