home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / usr / include / apt-pkg / dpkginit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-21  |  679 b   |  34 lines

  1. // -*- mode: cpp; mode: fold -*-
  2. // Description                                /*{{{*/
  3. // $Id: dpkginit.h,v 1.1 1998/11/23 07:03:11 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 GetLock();
  27.    void Close();
  28.    
  29.    pkgDpkgLock();
  30.    ~pkgDpkgLock();
  31. };
  32.  
  33. #endif
  34.