Fixed or handling bug
[ntk/apt.git] / apt-pkg / deb / dpkginit.h
CommitLineData
d38b7b3d
AL
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
ddc1d8d0 3// $Id: dpkginit.h,v 1.2 1999/07/26 17:46:08 jgg Exp $
d38b7b3d
AL
4/* ######################################################################
5
6 DPKG init - Initialize the dpkg stuff
7
8 This basically gets a lock in /var/lib/dpkg and checks the updates
9 directory
10
11 ##################################################################### */
12 /*}}}*/
13#ifndef PKGLIB_DPKGINIT_H
14#define PKGLIB_DPKGINIT_H
15
16#ifdef __GNUG__
17#pragma interface "apt-pkg/dpkginit.h"
18#endif
19
20class pkgDpkgLock
21{
22 int LockFD;
23
24 public:
25
ddc1d8d0
AL
26 bool CheckUpdates();
27 bool GetLock(bool WithUpdates);
d38b7b3d 28 void Close();
ddc1d8d0
AL
29
30 pkgDpkgLock(bool WithUpdates = true);
d38b7b3d
AL
31 ~pkgDpkgLock();
32};
33
34#endif