chiark / gitweb /
catalog: open up catalog internals
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Mar 2013 00:17:24 +0000 (20:17 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Mar 2013 03:45:59 +0000 (23:45 -0400)
commit844ec79b3c2f246114ea316ebe1f36044bdb688e
tree6e937c3738ee75fdd2c22e5f9bec72d789d6e13b
parent18cd5fe99f70a55a2d6f2303d6ee0624942695b1
catalog: open up catalog internals

In order to write tests for the catalog functions, they
are made non-static and start taking a 'database' parameter,
which is the name of a file with the preprocessed catalog
entries.

This makes it possible to make test-catalog part of the
normal test suite, since it now only operates on files
in /tmp.

Some more tests are added.
Makefile.am
src/journal/catalog.c
src/journal/catalog.h
src/journal/journalctl.c
src/journal/sd-journal.c
src/journal/test-catalog.c
src/shared/conf-files.c
src/shared/conf-files.h
src/shared/util.c
src/shared/util.h
src/udev/udevadm-hwdb.c