summaryrefslogtreecommitdiff
path: root/perl/db.xs
blob: 078927275496b6fd9b15e240f55d76f334661ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

MODULE = rpm		PACKAGE = rpmdb		PREFIX = rpmdb

void
rpmdbClose(db)
  rpmdb db

unsigned int
rpmdbFirst(db)
  rpmdb db
  CODE:
	RETVAL = rpmdbFirstRecNum(db);
  OUTPUT:
	RETVAL

unsigned int
rpmdbNext(db, last_rec)
  rpmdb db
  unsigned int last_rec
  CODE:
	RETVAL = rpmdbNextRecNum(db, last_rec);
  OUTPUT:
	RETVAL

Header
rpmdbRecord(db, rec)
  rpmdb db
  unsigned int rec
  CODE:
	RETVAL = rpmdbGetRecord(db, rec);
  OUTPUT:
	RETVAL