Commit 9b144258 authored by Daniel Salzman's avatar Daniel Salzman

Code cleaning

refs #2137
parent 941e9bff
......@@ -429,7 +429,7 @@ static bool last_serial_check(const uint32_t serial, const knot_packet_t *reply)
}
}
void process_query(const params_t *params, query_t *query)
void process_query(const params_t *params, const query_t *query)
{
float elapsed;
bool id_ok, stop;
......
......@@ -18,23 +18,20 @@
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief
* \brief dig/host executives
*
* \addtogroup knot_utils
* \addtogroup utils
* @{
*/
#ifndef _HOST__EXEC_H_
#define _HOST__EXEC_H_
#include <stdbool.h> // bool
#include <stdint.h> // uint16_t
#ifndef _UTILS__EXEC_H_
#define _UTILS__EXEC_H_
#include "utils/common/params.h" // params_t
#include "utils/common/resolv.h" // server_t
void process_query(const params_t *params, query_t *query);
void process_query(const params_t *params, const query_t *query);
#endif // _HOST__EXEC_H_
#endif // _UTILS__EXEC_H_
/*! @} */
......@@ -13,6 +13,16 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
* \file msg.h
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief Simple output formatting framework.
*
* \addtogroup utils
* @{
*/
#ifndef _UTILS__MSG_H_
#define _UTILS__MSG_H_
......
......@@ -18,7 +18,7 @@
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief Host command line parameters.
* \brief Common utils parameters processing.
*
* \addtogroup utils
* @{
......
......@@ -18,18 +18,15 @@
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief
* \brief host executives.
*
* \addtogroup knot_utils
* \addtogroup utils
* @{
*/
#ifndef _HOST__HOST_EXEC_H_
#define _HOST__HOST_EXEC_H_
#include <stdbool.h> // bool
#include <stdint.h> // uint16_t
#include "utils/common/params.h" // params_t
int host_exec(const params_t *params);
......
......@@ -27,14 +27,9 @@
#ifndef _HOST__HOST_PARAMS_H_
#define _HOST__HOST_PARAMS_H_
#include <stdbool.h>
#include <stdint.h>
#include "common/lists.h" // list
#include "utils/common/params.h" // protocol_t
#include "utils/common/params.h" // params_t
int host_params_parse(params_t *params, int argc, char *argv[]);
void host_params_clean(params_t *params);
#endif // _HOST__HOST_PARAMS_H_
......
......@@ -18,7 +18,7 @@
*
* \author Marek Vavrusa <marek.vavrusa@nic.cz>
*
* \brief
* \brief
*
* \addtogroup knot_utils
* @{
......@@ -27,9 +27,6 @@
#ifndef _NSUPDATE__NSUPDATE_EXEC_H_
#define _NSUPDATE__NSUPDATE_EXEC_H_
#include <stdbool.h> // bool
#include <stdint.h> // uint16_t
#include "utils/nsupdate/nsupdate_params.h"
int nsupdate_exec(params_t *params);
......
......@@ -24,10 +24,9 @@
* @{
*/
#ifndef _NSUPDATE_PARAMS_H_
#define _NSUPDATE_PARAMS_H_
#ifndef _NSUPDATE__NSUPDATE_PARAMS_H_
#define _NSUPDATE__NSUPDATE_PARAMS_H_
#include <stdbool.h>
#include <stdint.h>
#include "common/lists.h" // list
......@@ -60,6 +59,6 @@ int nsupdate_params_set_ttl(params_t *params, uint32_t ttl);
int nsupdate_params_set_origin(params_t *params, const char *origin);
void nsupdate_params_clean(params_t *params);
#endif // _NSUPDATE_PARAMS_H_
#endif // _NSUPDATE__NSUPDATE_PARAMS_H_
/*! @} */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment