~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to ftparchive/multicompress.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2010-02-18 22:07:23 UTC
  • mfrom: (9.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100218220723-zb7zdh6fmsmp30tr
Tags: 0.7.26~exp2
fix crash when LANGUAGE is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
#include <string>
22
 
#include <apt-pkg/contrib/fileutl.h>
 
22
#include <apt-pkg/fileutl.h>
23
23
#include <stdio.h>
24
24
#include <sys/types.h>
25
25
    
53
53
   mode_t Permissions;
54
54
   static const CompType Compressors[];
55
55
 
56
 
   bool OpenCompress(const CompType *Prog,pid_t &Pid,int FileFd,
57
 
                     int &OutFd,bool Comp);
58
 
   bool Child(int Fd);
 
56
   bool OpenCompress(const CompType *Prog,pid_t &Pid,int const &FileFd,
 
57
                     int &OutFd,bool const &Comp);
 
58
   bool Child(int const &Fd);
59
59
   bool Start();
60
60
   bool Die();
61
61
   
68
68
   bool Finalize(unsigned long &OutSize);
69
69
   bool OpenOld(int &Fd,pid_t &Proc);
70
70
   bool CloseOld(int Fd,pid_t Proc);
71
 
   static bool GetStat(string Output,string Compress,struct stat &St);
 
71
   static bool GetStat(string const &Output,string const &Compress,struct stat &St);
72
72
   
73
 
   MultiCompress(string Output,string Compress,mode_t Permissions,
74
 
                 bool Write = true);
 
73
   MultiCompress(string const &Output,string const &Compress,
 
74
                 mode_t const &Permissions, bool const &Write = true);
75
75
   ~MultiCompress();
76
76
};
77
77