Skip to content
Snippets Groups Projects
Commit 272c05e5 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Printing functions documented.

refs #686
parent 36ba57e6
No related merge requests found
......@@ -82,6 +82,10 @@ src/knot/ctl/process.h
src/knot/other/debug.h
src/knot/other/log.c
src/knot/other/log.h
src/knot/other/error.c
src/knot/other/error.h
src/knot/other/evqueue.c
src/knot/other/evqueue.h
src/knot/stat/gatherer.c
src/knot/stat/gatherer.h
src/knot/stat/stat.h
......
......@@ -17,16 +17,39 @@
typedef int (*printf_t)(const char *fmt, ...);
/* Hex-value printing.
/*!
* \brief Prints the given data as hexadecimal characters.
*
* \param data Data to print.
* \param length Size of the \a data array.
*/
void hex_print(const char *data, int length);
void hex_printf(const char *data, int length, printf_t print_handler);
/* Bit-value printing.
/*!
* \brief Prints the given data as hexadecimal characters using the given
* handler.
*
* \param data Data to print.
* \param length Size of the \a data array.
* \param printf_t Handler for printing.
*/
void hex_printf(const char *data, int length, printf_t print_handler);
/*!
* \brief Prints the given data as a bitmap.
*
* \param data Data to print.
* \param length Size of the \a data array.
*/
void bit_print(const char *data, int length);
/*!
* \brief Prints the given data as a bitmap using the given handler.
*
* \param data Data to print.
* \param length Size of the \a data array.
* \param printf_t Handler for printing.
*/
void bit_printf(const char *data, int length, printf_t print_handler);
#endif /* _KNOT_COMMON_PRINT_H_ */
......
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