veyron/services/wsprd/ipc/server: Add new Glob interface to match go/vcl/6426.
Change-Id: I1638f0938f1f8e7da2836d89dd054685a508e7b8
diff --git a/services/wsprd/ipc/server/dispatcher_test.go b/services/wsprd/ipc/server/dispatcher_test.go
index f0d5801..6c61809 100644
--- a/services/wsprd/ipc/server/dispatcher_test.go
+++ b/services/wsprd/ipc/server/dispatcher_test.go
@@ -38,6 +38,10 @@
return nil, nil
}
+func (mockInvoker) VGlob() *ipc.GlobState {
+ return nil
+}
+
type mockInvokerFactory struct{}
func (mockInvokerFactory) createInvoker(handle int64, sig signature.JSONServiceSignature, label security.Label) (ipc.Invoker, error) {
diff --git a/services/wsprd/ipc/server/invoker.go b/services/wsprd/ipc/server/invoker.go
index 6adfcbb..cdb873e 100644
--- a/services/wsprd/ipc/server/invoker.go
+++ b/services/wsprd/ipc/server/invoker.go
@@ -98,3 +98,8 @@
return results, nil
}
+
+// TODO(bjornick,rthellend): Find a reasonable way to implement this for JS.
+func (i *invoker) VGlob() *ipc.GlobState {
+ return nil
+}
diff --git a/services/wsprd/ipc/server/signature_invoker.go b/services/wsprd/ipc/server/signature_invoker.go
index a80d241..323ce8b 100644
--- a/services/wsprd/ipc/server/signature_invoker.go
+++ b/services/wsprd/ipc/server/signature_invoker.go
@@ -32,3 +32,7 @@
func (i *signatureInvoker) Invoke(methodName string, call ipc.ServerCall, argptrs []interface{}) ([]interface{}, error) {
return []interface{}{i.signature(), nil}, nil
}
+
+func (i *signatureInvoker) VGlob() *ipc.GlobState {
+ return nil
+}