eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_CURSOR = 0, /* Nothing actually written yet. */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_NEW_FIELD, /* In between fields. */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_TEXT_FIELD, /* In the middle of a text field. */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_BINARY_FIELD_START, /* Writing the name of a binary field. */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_BINARY_FIELD_SIZE, /* Writing the size of a binary field. */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_BINARY_FIELD, /* In the middle of a binary field. */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek ENTRY_DONE, /* Need to move to a new field. */
a3152e7655231b94fa7b9582906fb86ab00b9c99Zbigniew Jędrzejewski-Szmek sd_event_source *sigint_event, *sigterm_event;
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek /* journal stuff */
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek /* general metrics */
722b6795655149a68277b3cffeba711e1d440e5aZbigniew Jędrzejewski-Szmek char *last_cursor, *current_cursor;
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmek#define JOURNAL_UPLOAD_POLL_TIMEOUT (10 * USEC_PER_SEC)
3d090cc6f34e5970765dd1e7ee5e648a056d180dZbigniew Jędrzejewski-Szmek size_t (*input_callback)(void *ptr,
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmekint open_journal_for_upload(Uploader *u,
eacbb4d33e2bb5c54311544851140efe3dd0f774Zbigniew Jędrzejewski-Szmekvoid close_journal_input(Uploader *u);