journal-internal.h revision 897395791f53064d8c9a18cf6b6567404fbedf15
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering This file is part of systemd.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Copyright 2011 Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is free software; you can redistribute it and/or modify it
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering under the terms of the GNU Lesser General Public License as published by
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering (at your option) any later version.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is distributed in the hope that it will be useful, but
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Lesser General Public License for more details.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering You should have received a copy of the GNU Lesser General Public License
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* For concrete matches */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* For terms */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* The first and last entries, resp. */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* We already read the entry we currently point to, and the
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering * next one to read should probably not be this one again. */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* We should seek to the precise location specified, and
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering * return it, as we haven't read it yet. */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering unsigned current_invalidate_counter, last_invalidate_counter;
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringchar *journal_make_match_string(sd_journal *j);
1716f6dcf54d4c181c2e2558e3d5414f54c8d9caLennart PoetteringDEFINE_TRIVIAL_CLEANUP_FUNC(sd_journal*, sd_journal_close);
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering#define _cleanup_journal_close_ _cleanup_(sd_journal_closep)
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering#define JOURNAL_FOREACH_DATA_RETVAL(j, data, l, retval) \
a2ba62c719224a4b47751623ca5e8b0333f49721Lennart Poettering for (sd_journal_restart_data(j); ((retval) = sd_journal_enumerate_data((j), &(data), &(l))) > 0; )