dpkginit.h 739 B

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