151b6601dfr/*
233f661cstas * Copyright (c) 2005 Kungliga Tekniska H��gskolan
351b6601dfr * (Royal Institute of Technology, Stockholm, Sweden).
451b6601dfr * All rights reserved.
533f661cstas *
651b6601dfr * Redistribution and use in source and binary forms, with or without
751b6601dfr * modification, are permitted provided that the following conditions
851b6601dfr * are met:
933f661cstas *
1051b6601dfr * 1. Redistributions of source code must retain the above copyright
1151b6601dfr *    notice, this list of conditions and the following disclaimer.
1233f661cstas *
1351b6601dfr * 2. Redistributions in binary form must reproduce the above copyright
1451b6601dfr *    notice, this list of conditions and the following disclaimer in the
1551b6601dfr *    documentation and/or other materials provided with the distribution.
1633f661cstas *
1751b6601dfr * 3. Neither the name of the Institute nor the names of its contributors
1851b6601dfr *    may be used to endorse or promote products derived from this software
1951b6601dfr *    without specific prior written permission.
2033f661cstas *
2151b6601dfr * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
2251b6601dfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2351b6601dfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2451b6601dfr * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
2551b6601dfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2651b6601dfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2751b6601dfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2851b6601dfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2951b6601dfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3051b6601dfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3151b6601dfr * SUCH DAMAGE.
3251b6601dfr */
3351b6601dfr
3433f661cstas/* $Id$ */
3551b6601dfr
3651b6601dfr#ifndef _rk_HEX_H_
3751b6601dfr#define _rk_HEX_H_ 1
3851b6601dfr
3951b6601dfr#ifndef ROKEN_LIB_FUNCTION
4051b6601dfr#ifdef _WIN32
4133f661cstas#define ROKEN_LIB_FUNCTION
4233f661cstas#define ROKEN_LIB_CALL     __cdecl
4351b6601dfr#else
4451b6601dfr#define ROKEN_LIB_FUNCTION
4533f661cstas#define ROKEN_LIB_CALL
4651b6601dfr#endif
4751b6601dfr#endif
4851b6601dfr
4951b6601dfr#define hex_encode rk_hex_encode
5051b6601dfr#define hex_decode rk_hex_decode
5151b6601dfr
5233f661cstasROKEN_LIB_FUNCTION ssize_t ROKEN_LIB_CALL
5351b6601dfr	hex_encode(const void *, size_t, char **);
5433f661cstasROKEN_LIB_FUNCTION ssize_t ROKEN_LIB_CALL
5551b6601dfr	hex_decode(const char *, void *, size_t);
5651b6601dfr
5751b6601dfr#endif /* _rk_HEX_H_ */
58