dpkg-deb.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * dpkg-deb - construction and deconstruction of *.deb archives
  3. * dpkg-deb.h - external definitions for this program
  4. *
  5. * Copyright (C) 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
  6. *
  7. * This is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2,
  10. * or (at your option) any later version.
  11. *
  12. * This is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public
  18. * License along with dpkg; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. #ifndef DPKG_DEB_H
  22. #define DPKG_DEB_H
  23. typedef void dofunction(const char *const *argv);
  24. dofunction do_build NONRETURNING;
  25. dofunction do_contents, do_control, do_showinfo;
  26. dofunction do_info, do_field, do_extract, do_vextract, do_fsystarfile;
  27. extern int debugflag, nocheckflag, oldformatflag;
  28. extern const struct cmdinfo *cipaction;
  29. extern dofunction *action;
  30. void extracthalf(const char *debar, const char *directory,
  31. const char *taroption, int admininfo);
  32. extern const char *compression;
  33. extern const char* showformat;
  34. extern enum compress_type compress_type;
  35. #define DEBMAGIC "!<arch>\ndebian-binary "
  36. #define ADMINMEMBER "control.tar.gz "
  37. #define ADMINMEMBER_COMPAT "control.tar.gz/ "
  38. #define DATAMEMBER_GZ "data.tar.gz "
  39. #define DATAMEMBER_COMPAT_GZ "data.tar.gz/ "
  40. #define DATAMEMBER_BZ2 "data.tar.bz2 "
  41. #define DATAMEMBER_COMPAT_BZ2 "data.tar.bz2/ "
  42. #define DATAMEMBER_LZMA "data.tar.lzma "
  43. #define DATAMEMBER_COMPAT_LZMA "data.tar.lzma/ "
  44. #define DATAMEMBER_CAT "data.tar "
  45. #define DATAMEMBER_COMPAT_CAT "data.tar/ "
  46. #define MAXFILENAME 2048
  47. #endif /* DPKG_DEB_H */