* Skeleton of the privileged worker program.
* Some refactoring: put the NAR archive integer/string serialisation code in a separate file so it can be reused by the worker protocol implementation.
This commit is contained in:
parent
9adc074dc3
commit
40b3f64b55
12 changed files with 255 additions and 126 deletions
|
|
@ -173,7 +173,7 @@ void createStoreTransaction(Transaction & txn)
|
|||
|
||||
/* Path copying. */
|
||||
|
||||
struct CopySink : DumpSink
|
||||
struct CopySink : Sink
|
||||
{
|
||||
string s;
|
||||
virtual void operator () (const unsigned char * data, unsigned int len)
|
||||
|
|
@ -183,7 +183,7 @@ struct CopySink : DumpSink
|
|||
};
|
||||
|
||||
|
||||
struct CopySource : RestoreSource
|
||||
struct CopySource : Source
|
||||
{
|
||||
string & s;
|
||||
unsigned int pos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue