Refactor GoVPP
[govpp.git] / adapter / vppapiclient / empty_adapter.go
index 14f804d..7514048 100644 (file)
@@ -27,12 +27,12 @@ import (
 
 type vppAPIClientAdapter struct{}
 
-func NewVppAdapter() adapter.VppAdapter {
+func NewVppAdapter(string) adapter.VppAdapter {
        return &vppAPIClientAdapter{}
 }
 
 func (a *vppAPIClientAdapter) Connect() error {
-       return nil
+       return adapter.ErrNotImplemented
 }
 
 func (a *vppAPIClientAdapter) Disconnect() {
@@ -47,6 +47,10 @@ func (a *vppAPIClientAdapter) SendMsg(clientID uint32, data []byte) error {
        return nil
 }
 
-func (a *vppAPIClientAdapter) SetMsgCallback(cb func(context uint32, msgID uint16, data []byte)) {
+func (a *vppAPIClientAdapter) SetMsgCallback(cb adapter.MsgCallback) {
        // no op
 }
+
+func (a *vppAPIClientAdapter) WaitReady() error {
+       return nil
+}