feat(3p/nix/nix-daemon): add factory function for WorkerServiceImpl

Add a forward-declared factory function for constructing and returning a
WorkerServiceImpl, for eventual use in the main function for the nix
daemon

Change-Id: I9032d69b6ee3bc3b1f39f3d5d55f951cffad8145
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1293
Tested-by: BuildkiteCI
Reviewed-by: isomer <isomer@tvl.fyi>
This commit is contained in:
Griffin Smith 2020-07-19 15:04:44 -04:00 committed by glittershark
parent 2ef1060361
commit 17ca547ed3
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#pragma once
#include <memory>
#include "libproto/worker.grpc.pb.h"
#include "libstore/store-api.hh"
namespace nix::daemon {
std::unique_ptr<nix::proto::WorkerService::Service> NewWorkerService(
nix::Store*);
} // namespace nix::daemon