addobj alias

This commit is contained in:
Alexis PIRES 2020-03-08 22:16:25 +01:00
parent 085e3e3b34
commit c0a8190796
1 changed files with 5 additions and 0 deletions

5
obj.go
View File

@ -33,6 +33,11 @@ type Obj interface {
marshal(data bool) ([]byte, error)
}
// AddObject adds the specified Obj. Alias of AddObj.
func (cc *Conn) AddObject(o Obj) Obj {
return cc.AddObj(o)
}
// AddObj adds the specified Obj. See also
// https://wiki.nftables.org/wiki-nftables/index.php/Stateful_objects
func (cc *Conn) AddObj(o Obj) Obj {