DOKK / manpages / debian 11 / libelogind-dev-doc / SD_JOURNAL_FOREACH_FIELD.3.en
SD_JOURNAL_ENUMERATE_FIELDS(3) sd_journal_enumerate_fields SD_JOURNAL_ENUMERATE_FIELDS(3)

sd_journal_enumerate_fields, sd_journal_restart_fields, SD_JOURNAL_FOREACH_FIELD - Read used field names from the journal

#include <elogind/sd-journal.h>

int sd_journal_enumerate_fields(sd_journal *j, const char **field);

void sd_journal_restart_fields(sd_journal *j);

SD_JOURNAL_FOREACH_FIELD(sd_journal *j, const char *field);

As elogind can not open any systemd journals, the functions sd_journal_enumerate_fields(), sd_journal_restart_fields() and the macro SD_JOURNAL_FOREACH_FIELD() do nothing.

sd_journal_enumerate_fields() always returns 0.

sd_journal_restart_fields() returns nothing.

elogind(8), elogind.journal-fields(7),

sd_journal_open(3), sd_journal_query_unique(3), sd_journal_get_data(3), sd_journal_add_match(3)

elogind 246.9.1