]>
git.saurik.com Git - apt.git/blob - apt-pkg/acquire-worker.h
b0acde3e383b4e2b1f63cf8eafd5f66c524311ea
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: acquire-worker.h,v 1.5 1998/10/26 07:11:46 jgg Exp $
4 /* ######################################################################
6 Acquire Worker - Worker process manager
8 Each worker class is associated with exaclty one subprocess.
10 ##################################################################### */
12 #ifndef PKGLIB_ACQUIRE_WORKER_H
13 #define PKGLIB_ACQUIRE_WORKER_H
15 #include <apt-pkg/acquire.h>
16 #include <apt-pkg/configuration.h>
19 #pragma interface "apt-pkg/acquire-worker.h"
22 // Interfacing to the method process
23 class pkgAcquire::Worker
30 /* Linked list starting at a Queue and a linked list starting
35 // The access association
40 // This is the subprocess IPC setup
47 // Various internal things
49 vector
<string
> MessageQueue
;
52 // Private constructor helper
55 // Message handling things
61 // The message handlers
62 bool Capabilities(string Message
);
63 bool SendConfiguration();
69 // The curent method state
70 pkgAcquire::Queue::QItem
*CurrentItem
;
72 unsigned long CurrentSize
;
73 unsigned long TotalSize
;
75 // Load the method and do the startup
76 bool QueueItem(pkgAcquire::Queue::QItem
*Item
);
79 Worker(Queue
*OwnerQ
,MethodConfig
*Config
);
80 Worker(MethodConfig
*Config
);
84 bool pkgInjectConfiguration(string
&Message
,Configuration
&Cnf
);