14ecbd6dmarkm/*
233f661cstas * Copyright (c) 1999 - 2001 Kungliga Tekniska H��gskolan
333f661cstas * (Royal Institute of Technology, Stockholm, Sweden).
433f661cstas * All rights reserved.
54ecbd6dmarkm *
633f661cstas * Redistribution and use in source and binary forms, with or without
733f661cstas * modification, are permitted provided that the following conditions
833f661cstas * are met:
94ecbd6dmarkm *
1033f661cstas * 1. Redistributions of source code must retain the above copyright
1133f661cstas *    notice, this list of conditions and the following disclaimer.
124ecbd6dmarkm *
1333f661cstas * 2. Redistributions in binary form must reproduce the above copyright
1433f661cstas *    notice, this list of conditions and the following disclaimer in the
1533f661cstas *    documentation and/or other materials provided with the distribution.
164ecbd6dmarkm *
1733f661cstas * 3. Neither the name of the Institute nor the names of its contributors
1833f661cstas *    may be used to endorse or promote products derived from this software
1933f661cstas *    without specific prior written permission.
204ecbd6dmarkm *
2133f661cstas * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
2233f661cstas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2333f661cstas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2433f661cstas * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
2533f661cstas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2633f661cstas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2733f661cstas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2833f661cstas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2933f661cstas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3033f661cstas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3133f661cstas * SUCH DAMAGE.
324ecbd6dmarkm */
334ecbd6dmarkm
3433f661cstas/* $Id$ */
354ecbd6dmarkm
364ecbd6dmarkm#ifndef __PARSE_BYTES_H__
374ecbd6dmarkm#define __PARSE_BYTES_H__
384ecbd6dmarkm
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
4933f661cstasROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
504ecbd6dmarkmparse_bytes (const char *s, const char *def_unit);
514ecbd6dmarkm
5233f661cstasROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
534ecbd6dmarkmunparse_bytes (int t, char *s, size_t len);
544ecbd6dmarkm
5533f661cstasROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
564ecbd6dmarkmunparse_bytes_short (int t, char *s, size_t len);
574ecbd6dmarkm
584ecbd6dmarkm#endif /* __PARSE_BYTES_H__ */
59