]> git.saurik.com Git - apt.git/blame - ftparchive/sources.h
Merge branch 'debian/sid' into debian/experimental
[apt.git] / ftparchive / sources.h
CommitLineData
ce928105
MV
1#ifndef SOURCES_H
2#define SOURCES_H
3
4#include <apt-pkg/tagfile.h>
5
6class DscExtract
7{
8 public:
9 //FIXME: do we really need to enforce a maximum size of the dsc file?
10 static const int maxSize = 128*1024;
11
12 char *Data;
13 pkgTagSection Section;
14 unsigned long Length;
15 bool IsClearSigned;
16
17 bool TakeDsc(const void *Data, unsigned long Size);
18 bool Read(std::string FileName);
19
25613a61 20 DscExtract() : Data(0), Length(0), IsClearSigned(false) {
ce928105
MV
21 Data = new char[maxSize];
22 };
23 ~DscExtract() {
24 if(Data != NULL) {
25 delete [] Data;
26 Data = NULL;
27 }
28 };
29};
30
31
32#endif