Revert flags type usage to be able to use multiple flags

This commit is contained in:
Christian Müller 2019-05-17 15:21:19 +02:00
parent 5f9a5ef78d
commit 03507ea528

View file

@ -49,7 +49,7 @@ type ActiveConnection interface {
GetState() NmActiveConnectionState
// GetStateFlags gets the state flags of the connection.
GetStateFlags() NmActivationStateFlag
GetStateFlags() uint32
// GetDefault gets the default IPv4 flag of the connection.
GetDefault() bool
@ -123,8 +123,8 @@ func (a *activeConnection) GetState() NmActiveConnectionState {
return NmActiveConnectionState(a.getUint32Property(ActiveConnectionPropertyState))
}
func (a *activeConnection) GetStateFlags() NmActivationStateFlag {
return NmActivationStateFlag(a.getUint32Property(ActiveConnectionPropertyStateFlags))
func (a *activeConnection) GetStateFlags() uint32 {
return a.getUint32Property(ActiveConnectionPropertyStateFlags)
}
func (a *activeConnection) GetDefault() bool {