(key *ari.Key, btype, name string)
| 11 | } |
| 12 | |
| 13 | func (b *bridge) Create(key *ari.Key, btype, name string) (*ari.BridgeHandle, error) { |
| 14 | k, err := b.c.createRequest(&proxy.Request{ |
| 15 | Kind: "BridgeCreate", |
| 16 | Key: key, |
| 17 | BridgeCreate: &proxy.BridgeCreate{ |
| 18 | Type: btype, |
| 19 | Name: name, |
| 20 | }, |
| 21 | }) |
| 22 | if err != nil { |
| 23 | return nil, err |
| 24 | } |
| 25 | return ari.NewBridgeHandle(k, b, nil), nil |
| 26 | } |
| 27 | |
| 28 | func (b *bridge) StageCreate(key *ari.Key, btype, name string) (*ari.BridgeHandle, error) { |
| 29 | k, err := b.c.createRequest(&proxy.Request{ |