Google is committed to advancing racial equity for Black communities. See how.

addPublicService<T> method

int addPublicService <T>(Connector<T> connector, String serviceName)

Add and publish a public service. Will return ZX_OK if successful, else will return error status.

Implementation

int addPublicService<T>(vfs.Connector<T> connector, String serviceName) {
  _ensureNotClosed();
  var service = vfs.Service.withConnector(connector);
  int status = _public.addNode(serviceName, service);
  return status;
}