Skip to content
Snippets Groups Projects
Commit 2f78d2aa authored by Ondřej Surý's avatar Ondřej Surý
Browse files

src/dnslib/ renamed to libknot

parent 394d67ab
Branches
Tags
No related merge requests found
Showing with 52 additions and 52 deletions
......@@ -2,10 +2,10 @@
#include <stdlib.h>
#include <assert.h>
#include "dnslib/changesets.h"
#include "changesets.h"
#include "dnslib/rrset.h"
#include "dnslib/error.h"
#include "rrset.h"
#include "error.h"
static const size_t KNOT_CHANGESET_COUNT = 5;
static const size_t KNOT_CHANGESET_STEP = 5;
......
......@@ -5,14 +5,14 @@
*
* \brief Structure for representing IXFR/DDNS changeset and its API.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
#ifndef _KNOT_CHANGESETS_H_
#define _KNOT_CHANGESETS_H_
#include "dnslib/rrset.h"
#include "rrset.h"
/*! \todo Changeset must be serializable/deserializable, so
* all data and pointers have to be changeset-exclusive,
......
/*!
* \file dnslib-common.h
* \file common.h
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
*
* \brief Common macros, includes and utilities.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
#include <config.h>
......@@ -17,7 +17,7 @@
#ifndef _KNOT_COMMON_H_
#define _KNOT_COMMON_H_
#define KNOT_NAME "dnslib" // Project name
#define KNOT_NAME "libknot" // Project name
#define KNOT_VER 0x000100 // 0xMMIIRR (MAJOR,MINOR,REVISION)
#ifndef UINT_DEFINED
......
......@@ -5,7 +5,7 @@
*
* \brief Contains some DNS-related constants.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......@@ -13,7 +13,7 @@
#define _KNOT_CONSTS_H_
#include <stdint.h>
#include "dnslib/descriptor.h"
#include "descriptor.h"
/*
* OPCODEs
......
......@@ -4,9 +4,9 @@
#include <assert.h>
#include <stdlib.h>
#include "dnslib/utils.h"
#include "dnslib/debug.h"
#include "dnslib/dnslib.h"
#include "utils.h"
#include "debug.h"
#include "libknot.h"
#include "common/print.h"
void knot_rdata_dump(knot_rdata_t *rdata, uint32_t type, char loaded_zone)
......
/*!
* \file dnslib/debug.h
* \file debug.h
*
* \author Jan Kadlec <jan.kadlec@nic.cz>
* \author Lubos Slovak <lubos.slovak@nic.cz>
*
* \brief Functions for debug output of dnslib structures.
* \brief Functions for debug output of structures.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......@@ -15,11 +15,11 @@
#include <stdint.h>
#include <stdio.h>
#include "dnslib/rdata.h"
#include "dnslib/rrset.h"
#include "dnslib/node.h"
#include "dnslib/zone.h"
#include "dnslib/utils.h"
#include "rdata.h"
#include "rrset.h"
#include "node.h"
#include "zone.h"
#include "utils.h"
#include "common/print.h"
/*!
......
......@@ -7,7 +7,7 @@
#include <string.h>
#include <sys/types.h>
#include "dnslib/dnslib.h"
#include "libknot.h"
enum desclen { KNOT_RRTYPE_DESCRIPTORS_LENGTH = 32770 }; // used to be 101
......
......@@ -9,7 +9,7 @@
*
* \todo Link to NDS's license + add license !!!
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......
......@@ -3,8 +3,8 @@
#include <stdlib.h>
#include <stdio.h>
#include "dnslib/dname-table.h"
#include "dnslib/error.h"
#include "dname-table.h"
#include "error.h"
/*!< Tree functions. */
TREE_DEFINE(dname_table_node, avl);
......
......@@ -6,7 +6,7 @@
* \brief Structures representing dname table and functions for
* manipulating these structures.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......@@ -17,8 +17,8 @@
#include "common/tree.h"
#include "dnslib/dname.h"
#include "dnslib/dnslib-common.h"
#include "dname.h"
#include "common.h"
/*!
......
......@@ -5,14 +5,14 @@
#include <string.h>
#include <ctype.h> // tolower()
#include "dnslib/dnslib-common.h"
#include "dnslib/error.h"
#include "dnslib/dname.h"
#include "dnslib/consts.h"
#include "dnslib/tolower.h"
#include "dnslib/debug.h"
#include "dnslib/utils.h"
#include "dnslib/wire.h"
#include "common.h"
#include "error.h"
#include "dname.h"
#include "consts.h"
#include "tolower.h"
#include "debug.h"
#include "utils.h"
#include "wire.h"
/*! \todo dnames allocated from TLS cache will be discarded after thread
* termination. This shouldn't happpen.
......
......@@ -5,7 +5,7 @@
*
* \brief Domain name structure and API for manipulating it.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......
......@@ -2,11 +2,11 @@
#include <stdlib.h>
#include <assert.h>
#include "dnslib/edns.h"
#include "dnslib/dnslib-common.h"
#include "dnslib/descriptor.h"
#include "dnslib/debug.h"
#include "dnslib/error.h"
#include "edns.h"
#include "common.h"
#include "descriptor.h"
#include "debug.h"
#include "error.h"
/*! \brief Various EDNS constatns. */
enum knot_edns_consts {
......
......@@ -5,7 +5,7 @@
*
* \brief Functions for manipulating and parsing EDNS OPT pseudo-RR.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......@@ -14,8 +14,8 @@
#include <stdint.h>
#include "dnslib/utils.h"
#include "dnslib/rrset.h"
#include "utils.h"
#include "rrset.h"
/*----------------------------------------------------------------------------*/
/*! \brief Structure representing one OPT RR Option. */
......
#include "dnslib/error.h"
#include "dnslib/utils.h"
#include "error.h"
#include "utils.h"
#include "common/errors.h"
const error_table_t knot_error_msgs2[KNOT_ERROR_COUNT] = {
{KNOT_EOK, "OK"},
{KNOT_ERROR, "General dnslib error."},
{KNOT_ERROR, "General error."},
{KNOT_ENOMEM, "Not enough memory."},
{KNOT_EBADARG, "Wrong argument supported."},
{KNOT_EFEWDATA, "Not enough data to parse."},
......
/*!
* \file dnslib/error.h
* \file error.h
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
*
* \brief Error codes and function for getting error message.
*
* \addtogroup dnslib
* \addtogroup libknot
* @{
*/
......@@ -14,10 +14,10 @@
#include "common/errors.h"
/*! \brief Error codes used in the dnslib library. */
/*! \brief Error codes used in the library. */
enum knot_error {
KNOT_EOK = 0, /*!< OK */
KNOT_ERROR = -10000, /*!< General dnslib error. */
KNOT_ERROR = -10000, /*!< General error. */
KNOT_ENOMEM, /*!< Not enough memory. */
KNOT_ENOTSUP, /*!< Operation not supported. */
KNOT_EAGAIN, /*!< OS lacked necessary resources. */
......
File moved
File moved
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