Commit Graph

23 Commits

Author SHA1 Message Date
Petr Viktorin 2e74eec244 Python stable ABI: Adjust type usage & declarations
The previous commit removed all *_Type variables.
This adds them back, but as *pointers* to Python type objects
rather than type objects themselves.

All usages now need an extra pointer dereference (or removing an
address-of).
(The compiler will complain of type safety if we miss a spot,
so I'm OK using the original names.)

Also, add header declarations for the Spec structs.
2023-10-05 13:39:37 +03:00
Panu Matilainen 3d1169fe69 Handle all rpmds variants in its constructor
- either it takes a header + tag, or (name, flags, version) tuple + tag
  to generate a single dep
- push rpm.dsSingle() compatibility out to python side
- hdr.dsFromHeader() and hdr.dsOfHeader() no longer need to be in rpmds-py.c
2009-10-05 16:42:52 +03:00
Panu Matilainen 36ada6c116 Make object allocation type agnostic
- pass (sub)type down to wrappers
- call subtype tp_alloc() instead of PyObject_New()
- preliminaries for allowing subtyping
2009-09-24 11:42:17 +03:00
Panu Matilainen 2a8da8606f Add type checking macros for all rpm python type objects 2009-09-23 00:06:13 +03:00
Panu Matilainen 14d5aaedcb Lose the empty doxygen markers
- nothing wrong with comments but empty comment placeholders
  are not exactly useful
2009-09-22 22:42:06 +03:00
Panu Matilainen ed557bbcf0 Make all python object creation wrappers return PyObject pointers
- this way the only place where casts are needed are in the wrapper itself
2009-09-22 21:24:55 +03:00
Panu Matilainen ae1fd3fa47 Make the python object structures opaque 2009-09-22 16:47:07 +03:00
Panu Matilainen 9ce13e09ef Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Ralf Corsépius abeea80a38 Use #include <x.h> syntax to include public headers. 2007-11-23 06:46:19 +01:00
Ralf Corsépius d2d4dae1ad Formating cleanup. 2007-09-12 09:34:31 +02:00
Ralf Corsépius 3aad15624e Remove split tags. 2007-09-11 15:28:26 +02:00
pauln 24e6f8633e Add kwargs everywhere - courtesy of pjones@redhat.com
CVS patchset: 7582
CVS date: 2004/11/17 17:05:39
2004-11-17 17:05:39 +00:00
jbj 5e20d90422 splint fiddles, no warnings.
CVS patchset: 6961
CVS date: 2003/12/01 19:15:38
2003-12-01 19:15:38 +00:00
jbj 3dcfeb3f9a Merge changes from rpm-4.2.1 development.
CVS patchset: 6959
CVS date: 2003/11/23 19:50:52
2003-11-23 19:50:52 +00:00
jbj c6156e0abd Doxygen doco markup.
CVS patchset: 6760
CVS date: 2003/04/17 17:17:27
2003-04-17 17:17:27 +00:00
jbj 8681309f1a Add
PyObject *md_dict;		/*!< to look like PyModuleObject */
to all rpmfoo_Type's.

CVS patchset: 5936
CVS date: 2002/12/12 17:46:22
2002-12-12 17:46:22 +00:00
jbj c499cd119c Remove foo.iter() method, use tp_iter mechanism, for rpmmi/rpmds/rpmfi.
CVS patchset: 5559
CVS date: 2002/07/19 20:26:38
2002-07-19 20:26:38 +00:00
jbj 3ea74aa3c7 - python: sanity check fixes on rpmts/rpmte methods.
CVS patchset: 5554
CVS date: 2002/07/14 21:23:29
2002-07-14 21:23:29 +00:00
jbj c3ed66c298 - eliminate legacy db methods, add ts.dbMatch method.
CVS patchset: 5453
CVS date: 2002/05/28 23:06:44
2002-05-28 23:06:44 +00:00
jbj 259bb824cc Add rpmal bindings, Grand Renaming to rpmalFoo().
CVS patchset: 5450
CVS date: 2002/05/27 18:12:12
2002-05-27 18:12:12 +00:00
jbj 4f1bba10aa - add rpmds/rpmfi/rpmts methods to bindings.
CVS patchset: 5447
CVS date: 2002/05/23 21:06:42
2002-05-23 21:06:42 +00:00
jbj aeb8ed2318 Create rpmts-py.c.
CVS patchset: 5446
CVS date: 2002/05/23 19:42:23
2002-05-23 19:42:23 +00:00
jbj 0f0184d17f Bind rpmds as class derived from header.
CVS patchset: 5444
CVS date: 2002/05/23 00:49:19
2002-05-23 00:49:19 +00:00