"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/knot/journal/journal_metadata.h" between
knot-2.9.1.tar.xz and knot-2.9.2.tar.xz

About: Knot DNS is a high-performance authoritative-only DNS server (supports zone transfers, dynamic updates and DNSSEC).

journal_metadata.h  (knot-2.9.1.tar.xz):journal_metadata.h  (knot-2.9.2.tar.xz)
skipping to change at line 138 skipping to change at line 138
* \return KNOT_E* * \return KNOT_E*
*/ */
int journal_set_flushed(zone_journal_t j); int journal_set_flushed(zone_journal_t j);
/*! /*!
* \brief Obtain information about the zone's journal from the DB (mostly metada ta). * \brief Obtain information about the zone's journal from the DB (mostly metada ta).
* *
* \param j Zone journal. * \param j Zone journal.
* \param exists Output: bool if the zone exists in the journal. * \param exists Output: bool if the zone exists in the journal.
* \param first_serial Optional output: serial-from of the first changeset i n journal. * \param first_serial Optional output: serial-from of the first changeset i n journal.
* \param has_zij Optional output: bool if there is zone-in-journal.
* \param serial_to Optional output: serial.to of the last changeset in j ournal. * \param serial_to Optional output: serial.to of the last changeset in j ournal.
* \param has_merged Optional output: bool if there is a special (non zone -in-journal) merged changeset. * \param has_merged Optional output: bool if there is a special (non zone -in-journal) merged changeset.
* \param merged_serial Optional output: serial-from of the merged changeset. * \param merged_serial Optional output: serial-from of the merged changeset.
* \param occupied Optional output: DB space occupied by this zones. * \param occupied Optional output: DB space occupied by this zones.
* \param occupied_total Optional output: DB space occupied in total by all zo nes. * \param occupied_total Optional output: DB space occupied in total by all zo nes.
* *
* \return KNOT_E* * \return KNOT_E*
*/ */
int journal_info(zone_journal_t j, bool *exists, uint32_t *first_serial, int journal_info(zone_journal_t j, bool *exists, uint32_t *first_serial, bool *h as_zij,
uint32_t *serial_to, bool *has_merged, uint32_t *merged_serial, uint32_t *serial_to, bool *has_merged, uint32_t *merged_serial,
uint64_t *occupied, uint64_t *occupied_total); uint64_t *occupied, uint64_t *occupied_total);
/*! \brief Return true if this zone exists in journal DB. */ /*! \brief Return true if this zone exists in journal DB. */
inline static bool journal_is_existing(zone_journal_t j) { inline static bool journal_is_existing(zone_journal_t j) {
bool ex = false; bool ex = false;
(void)journal_info(j, &ex, NULL, NULL, NULL, NULL, NULL, NULL); (void)journal_info(j, &ex, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
return ex; return ex;
} }
/*! /*!
* \brief Call a function for each zone being in the journal DB. * \brief Call a function for each zone being in the journal DB.
* *
* \param db Journal database. * \param db Journal database.
* \param cb Callback to be called for each zone-name found. * \param cb Callback to be called for each zone-name found.
* \param ctx Arbitrary context to be passed to the callback. * \param ctx Arbitrary context to be passed to the callback.
* *
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)