summaryrefslogtreecommitdiff
path: root/src/journal/catalog.h
AgeCommit message (Collapse)AuthorFilesLines
2014-09-15hashmap: introduce hash_ops to make struct Hashmap smallerMichal Schmidt1-2/+1
It is redundant to store 'hash' and 'compare' function pointers in struct Hashmap separately. The functions always comprise a pair. Store a single pointer to struct hash_ops instead. systemd keeps hundreds of hashmaps, so this saves a little bit of memory.
2013-12-22shared: switch our hash table implementation over to SipHashLennart Poettering1-1/+1
SipHash appears to be the new gold standard for hashing smaller strings for hashtables these days, so let's make use of it.
2013-12-02catalog: determine language from the filenameZbigniew Jędrzejewski-Szmek1-0/+1
2013-05-02Add __attribute__((const, pure, format)) in various placesZbigniew Jędrzejewski-Szmek1-1/+1
I'm assuming that it's fine if a _const_ or _pure_ function calls assert. It is assumed that the assert won't trigger, and even if it does, it can only trigger on the first call with a given set of parameters, and we don't care if the compiler moves the order of calls.
2013-03-28catalog: open up catalog internalsZbigniew Jędrzejewski-Szmek1-5/+11
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.
2013-03-19journalct: beef up entry listingZbigniew Jędrzejewski-Szmek1-1/+4
The ability to dump catalog entries in full and by id is added.
2012-11-15journal: implement message catalogLennart Poettering1-0/+28
The message catalog can be used to attach short help texts to log lines, keyed by their MESSAGE_ID= fields. This is useful to help the administrator understand the context and cause of a message, find possible solutions and find further related documentation. Since this is keyed off MESSAGE_ID= this will only work for native journal messages. The message catalog supports i18n, and is useful to augment english language system messages with explanations in the local language. This commit only includes short explanatory messages for a few example message IDs, we'll add more complete documentation for the relevant systemd messages later on.