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