]> git.saurik.com Git - apt.git/blob - apt-pkg/deb/dpkginit.h
More fixes
[apt.git] / apt-pkg / deb / dpkginit.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: dpkginit.h,v 1.2 1999/07/26 17:46:08 jgg Exp $
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
20 class pkgDpkgLock
21 {
22 int LockFD;
23
24 public:
25
26 bool CheckUpdates();
27 bool GetLock(bool WithUpdates);
28 void Close();
29
30 pkgDpkgLock(bool WithUpdates = true);
31 ~pkgDpkgLock();
32 };
33
34 #endif