Skip to content
Snippets Groups Projects
Commit a04479c3 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

contrib: move endian from internal

parent 4d360755
Branches
Tags
No related merge requests found
......@@ -31,6 +31,7 @@ libtap/tap/float.h
libtap/tap/macros.h
samples/Makefile.am
src/Makefile.am
src/contrib/endian.h
src/contrib/getline.c
src/contrib/getline.h
src/contrib/openbsd/strlcat.c
......@@ -352,7 +353,6 @@ src/libknot/internal/base32hex.h
src/libknot/internal/base64.c
src/libknot/internal/base64.h
src/libknot/internal/consts.h
src/libknot/internal/endian.h
src/libknot/internal/errcode.c
src/libknot/internal/errcode.h
src/libknot/internal/hhash.c
......
......@@ -24,6 +24,7 @@ AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
libcontrib_ladir = $(includedir)
nobase_libcontrib_la_HEADERS = \
contrib/endian.h \
contrib/getline.h \
contrib/openbsd/strlcat.h \
contrib/openbsd/strlcpy.h \
......@@ -73,7 +74,6 @@ nobase_libknot_internal_la_HEADERS = \
libknot/internal/base32hex.h \
libknot/internal/base64.h \
libknot/internal/consts.h \
libknot/internal/endian.h \
libknot/internal/errcode.h \
libknot/internal/hhash.h \
libknot/internal/lists.h \
......
......@@ -13,6 +13,14 @@
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
*
* \brief Endian dependent integer operations.
*
* \addtogroup contrib
* @{
*/
#pragma once
......@@ -56,3 +64,5 @@
# define htole32(x) OSSwapHostToLittleInt32(x)
# define htole64(x) OSSwapHostToLittleInt64(x)
#endif
/*! @} */
......@@ -22,10 +22,10 @@
#include <limits.h>
#include <stdbool.h>
#include "contrib/endian.h"
#include "knot/updates/acl.h"
#include "knot/conf/conf.h"
#include "libknot/libknot.h"
#include "libknot/internal/endian.h"
#include "libknot/internal/sockaddr.h"
#include "libknot/yparser/yptrafo.h"
......
......@@ -19,8 +19,8 @@
#include <fcntl.h>
#include <unistd.h>
#include "contrib/endian.h"
#include "libknot/internal/utils.h"
#include "libknot/internal/endian.h"
#include "libknot/internal/macros.h"
/*----------------------------------------------------------------------------*/
......
......@@ -23,7 +23,7 @@
#include <string.h>
#include <sys/types.h>
#include "libknot/internal/endian.h"
#include "contrib/endian.h"
#include "libknot/internal/errcode.h"
#include "libknot/rdata.h"
......
......@@ -19,7 +19,7 @@
#include <string.h>
#include <tap/basic.h>
#include "libknot/internal/endian.h"
#include "contrib/endian.h"
int main(int argc, char *argv[])
{
......
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