diff options
| author | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:17 +0000 |
|---|---|---|
| committer | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:17 +0000 |
| commit | 507d25595a7e989139b9c425b39f02ee48fa033e (patch) | |
| tree | b6d9a27db1078d62df8efe68a853165f324bfb60 /python/apt_pkgmodule.h | |
| download | python-apt-507d25595a7e989139b9c425b39f02ee48fa033e.tar.gz | |
Initial revision
Author: jgg
Date: 2001-02-20 06:32:01 GMT
Initial revision
Diffstat (limited to 'python/apt_pkgmodule.h')
| -rw-r--r-- | python/apt_pkgmodule.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.h b/python/apt_pkgmodule.h new file mode 100644 index 00000000..5398bd96 --- /dev/null +++ b/python/apt_pkgmodule.h @@ -0,0 +1,65 @@ +// -*- mode: cpp; mode: fold -*- +// Description /*{{{*/ +// $Id: apt_pkgmodule.h,v 1.1 2001/02/20 06:32:01 jgg Exp $ +/* ###################################################################### + + Prototypes for the module + + ##################################################################### */ + /*}}}*/ +#ifndef APT_PKGMODULE_H +#define APT_PKGMODULE_H + +#include <python/Python.h> + +// Configuration Stuff +#define Configuration_Check(op) ((op)->ob_type == &ConfigurationType || \ + (op)->ob_type == &ConfigurationPtrType || \ + (op)->ob_type == &ConfigurationSubType) +extern PyTypeObject ConfigurationType; +extern PyTypeObject ConfigurationPtrType; +extern PyTypeObject ConfigurationSubType; +extern PyTypeObject VersionType; + +extern char *doc_LoadConfig; +extern char *doc_LoadConfigISC; +extern char *doc_ParseCommandLine; +PyObject *LoadConfig(PyObject *Self,PyObject *Args); +PyObject *LoadConfigISC(PyObject *Self,PyObject *Args); +PyObject *ParseCommandLine(PyObject *Self,PyObject *Args); + +// Tag File Stuff +extern PyTypeObject TagSecType; +extern PyTypeObject TagFileType; +extern char *doc_ParseSection; +extern char *doc_ParseTagFile; +extern char *doc_RewriteSection; +PyObject *ParseSection(PyObject *self,PyObject *Args); +PyObject *ParseTagFile(PyObject *self,PyObject *Args); +PyObject *RewriteSection(PyObject *self,PyObject *Args); + +// String Stuff +PyObject *StrQuoteString(PyObject *self,PyObject *Args); +PyObject *StrDeQuote(PyObject *self,PyObject *Args); +PyObject *StrSizeToStr(PyObject *self,PyObject *Args); +PyObject *StrTimeToStr(PyObject *self,PyObject *Args); +PyObject *StrURItoFileName(PyObject *self,PyObject *Args); +PyObject *StrBase64Encode(PyObject *self,PyObject *Args); +PyObject *StrStringToBool(PyObject *self,PyObject *Args); +PyObject *StrTimeRFC1123(PyObject *self,PyObject *Args); +PyObject *StrStrToTime(PyObject *self,PyObject *Args); + +// Cache Stuff +extern PyTypeObject PkgCacheType; +extern PyTypeObject PkgListType; +extern PyTypeObject PackageType; +extern PyTypeObject PackageFileType; +extern PyTypeObject DependencyType; +extern PyTypeObject RDepListType; +PyObject *TmpGetCache(PyObject *Self,PyObject *Args); + +// PkgRecords Stuff +extern PyTypeObject PkgRecordsType; +PyObject *GetPkgRecords(PyObject *Self,PyObject *Args); + +#endif |
