* 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:
Eelco Dolstra 2006-11-30 19:19:59 +00:00
parent 9adc074dc3
commit 40b3f64b55
12 changed files with 255 additions and 126 deletions

View file

@ -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;