13a289941SAaron LI /* 23a289941SAaron LI * Copyright (c) 1994, 1995, 1996 33a289941SAaron LI * The Regents of the University of California. All rights reserved. 43a289941SAaron LI * 53a289941SAaron LI * Redistribution and use in source and binary forms, with or without 63a289941SAaron LI * modification, are permitted provided that the following conditions 73a289941SAaron LI * are met: 83a289941SAaron LI * 1. Redistributions of source code must retain the above copyright 93a289941SAaron LI * notice, this list of conditions and the following disclaimer. 103a289941SAaron LI * 2. Redistributions in binary form must reproduce the above copyright 113a289941SAaron LI * notice, this list of conditions and the following disclaimer in the 123a289941SAaron LI * documentation and/or other materials provided with the distribution. 133a289941SAaron LI * 3. All advertising materials mentioning features or use of this software 143a289941SAaron LI * must display the following acknowledgement: 153a289941SAaron LI * This product includes software developed by the Computer Systems 163a289941SAaron LI * Engineering Group at Lawrence Berkeley Laboratory. 173a289941SAaron LI * 4. Neither the name of the University nor of the Laboratory may be used 183a289941SAaron LI * to endorse or promote products derived from this software without 193a289941SAaron LI * specific prior written permission. 203a289941SAaron LI * 213a289941SAaron LI * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 223a289941SAaron LI * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 233a289941SAaron LI * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 243a289941SAaron LI * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 253a289941SAaron LI * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 263a289941SAaron LI * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 273a289941SAaron LI * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 283a289941SAaron LI * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 293a289941SAaron LI * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 303a289941SAaron LI * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 313a289941SAaron LI * SUCH DAMAGE. 323a289941SAaron LI */ 333a289941SAaron LI 343a289941SAaron LI #ifndef fmtutils_h 353a289941SAaron LI #define fmtutils_h 363a289941SAaron LI 373a289941SAaron LI #include "pcap/funcattrs.h" 383a289941SAaron LI 393a289941SAaron LI #ifdef __cplusplus 403a289941SAaron LI extern "C" { 413a289941SAaron LI #endif 423a289941SAaron LI 43*ea16f64eSAntonio Huete Jimenez void pcap_fmt_set_encoding(unsigned int); 44*ea16f64eSAntonio Huete Jimenez 453a289941SAaron LI void pcap_fmt_errmsg_for_errno(char *, size_t, int, 463a289941SAaron LI PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5); 473a289941SAaron LI 483a289941SAaron LI #ifdef _WIN32 493a289941SAaron LI void pcap_fmt_errmsg_for_win32_err(char *, size_t, DWORD, 503a289941SAaron LI PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5); 513a289941SAaron LI #endif 523a289941SAaron LI 533a289941SAaron LI #ifdef __cplusplus 543a289941SAaron LI } 553a289941SAaron LI #endif 563a289941SAaron LI 573a289941SAaron LI #endif 58