diff options
author | rjray <devnull@localhost> | 2000-10-08 10:08:58 +0000 |
---|---|---|
committer | rjray <devnull@localhost> | 2000-10-08 10:08:58 +0000 |
commit | f53b8cb1c2c5c80fb945af8421c62282327c6582 (patch) | |
tree | 0f898f891339cf6938130a456a2518afa6c0f8ee /Perl-RPM | |
parent | 8bc42f9c4df2eb167acc9ff1849551326cce76a8 (diff) | |
download | librpm-tizen-f53b8cb1c2c5c80fb945af8421c62282327c6582.tar.gz librpm-tizen-f53b8cb1c2c5c80fb945af8421c62282327c6582.tar.bz2 librpm-tizen-f53b8cb1c2c5c80fb945af8421c62282327c6582.zip |
Changes related to start of Package integration
CVS patchset: 4195
CVS date: 2000/10/08 10:08:58
Diffstat (limited to 'Perl-RPM')
-rw-r--r-- | Perl-RPM/RPM.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/Perl-RPM/RPM.h b/Perl-RPM/RPM.h index 578a061c8..098259215 100644 --- a/Perl-RPM/RPM.h +++ b/Perl-RPM/RPM.h @@ -1,5 +1,5 @@ /* - * $Id: RPM.h,v 1.10 2000/10/05 04:48:59 rjray Exp $ + * $Id: RPM.h,v 1.11 2000/10/08 10:08:58 rjray Exp $ * * Various C-specific decls/includes/etc. for the RPM linkage */ @@ -46,6 +46,14 @@ # include <rpm/dbindex.h> #endif +/* Various flags. For now, one nybble for header and one for package. */ +#define RPM_HEADER_MASK 0x0f +#define RPM_HEADER_READONLY 0x01 +#define RPM_HEADER_FROM_REF 0x02 + +#define RPM_PACKAGE_MASK 0xf0 +#define RPM_PACKAGE_READONLY 0x10 + /* * Perl complement: RPM::Database */ @@ -107,9 +115,6 @@ typedef HV* RPM__Header; #define new_RPM__Header(x) x = newHV() -#define RPM_HEADER_READONLY 1 -#define RPM_HEADER_FROM_REF 2 - /* * Perl complement: RPM::Package @@ -124,13 +129,13 @@ typedef HV* RPM__Header; typedef struct { /* The filepath, ftp path or URI that refers to the package */ - const char* path; + char* path; /* A weak ref to the header structure for the package, if it exists */ RPM__Header header; /* The RPM signature (if present) is stored in the same struct as hdrs */ Header signature; /* Should this be treated as a read-only source? */ - int read_only; + int readonly; /* The current notify/callback function associated with this package */ CV* callback; } RPM_Package; @@ -196,8 +201,10 @@ extern RPM__Header rpmdb_FETCH(pTHX_ RPM__Database, SV *); extern int rpmdb_EXISTS(pTHX_ RPM__Database, SV *); /* RPM/Package.xs: */ -extern int rpmpkg_is_source(pTHX_ RPM_Package *); -extern int rpmpkg_cmpver(pTHX_ RPM_Package *, RPM_Package *); -extern int rpmpkg_cmpver2(pTHX_ RPM_Package *, RPM__Header); +extern RPM__Package rpmpkg_new(pTHX_ char *, SV *, int); +extern SV* rpmpkg_set_callback(pTHX_ RPM__Package, SV *); +extern int rpmpkg_is_source(pTHX_ RPM__Package); +extern int rpmpkg_cmpver_pkg(pTHX_ RPM__Package, RPM__Package); +extern int rpmpkg_cmpver_hdr(pTHX_ RPM__Package, RPM__Header); #endif /* H_RPM_XS_HDR */ |