// -*- Mode: Go; indent-tabs-mode: t -*-

/*
 * Copyright (C) 2017 Canonical Ltd
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package interfaces

type BySlotRef bySlotRef

func (c BySlotRef) Len() int           { return bySlotRef(c).Len() }
func (c BySlotRef) Swap(i, j int)      { bySlotRef(c).Swap(i, j) }
func (c BySlotRef) Less(i, j int) bool { return bySlotRef(c).Less(i, j) }

type ByPlugRef byPlugRef

func (c ByPlugRef) Len() int           { return byPlugRef(c).Len() }
func (c ByPlugRef) Swap(i, j int)      { byPlugRef(c).Swap(i, j) }
func (c ByPlugRef) Less(i, j int) bool { return byPlugRef(c).Less(i, j) }

type ByPlugSnapAndName byPlugSnapAndName

func (c ByPlugSnapAndName) Len() int           { return byPlugSnapAndName(c).Len() }
func (c ByPlugSnapAndName) Swap(i, j int)      { byPlugSnapAndName(c).Swap(i, j) }
func (c ByPlugSnapAndName) Less(i, j int) bool { return byPlugSnapAndName(c).Less(i, j) }

type BySlotSnapAndName bySlotSnapAndName

func (c BySlotSnapAndName) Len() int           { return bySlotSnapAndName(c).Len() }
func (c BySlotSnapAndName) Swap(i, j int)      { bySlotSnapAndName(c).Swap(i, j) }
func (c BySlotSnapAndName) Less(i, j int) bool { return bySlotSnapAndName(c).Less(i, j) }

type ByBackendName byBackendName

func (c ByBackendName) Len() int           { return byBackendName(c).Len() }
func (c ByBackendName) Swap(i, j int)      { byBackendName(c).Swap(i, j) }
func (c ByBackendName) Less(i, j int) bool { return byBackendName(c).Less(i, j) }

type ByInterfaceName byInterfaceName

func (c ByInterfaceName) Len() int           { return byInterfaceName(c).Len() }
func (c ByInterfaceName) Swap(i, j int)      { byInterfaceName(c).Swap(i, j) }
func (c ByInterfaceName) Less(i, j int) bool { return byInterfaceName(c).Less(i, j) }

type ByPlugInfo byPlugInfo

func (c ByPlugInfo) Len() int           { return byPlugInfo(c).Len() }
func (c ByPlugInfo) Swap(i, j int)      { byPlugInfo(c).Swap(i, j) }
func (c ByPlugInfo) Less(i, j int) bool { return byPlugInfo(c).Less(i, j) }

type BySlotInfo bySlotInfo

func (c BySlotInfo) Len() int           { return bySlotInfo(c).Len() }
func (c BySlotInfo) Swap(i, j int)      { bySlotInfo(c).Swap(i, j) }
func (c BySlotInfo) Less(i, j int) bool { return bySlotInfo(c).Less(i, j) }
