1290001Sglebius/*
2290001Sglebius * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
3290001Sglebius * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
4290001Sglebius *
5290001Sglebius * Redistribution and use in source and binary forms, with or without
6290001Sglebius * modification, are permitted provided that the following conditions
7290001Sglebius * are met:
8290001Sglebius * 1. Redistributions of source code must retain the above copyright
9290001Sglebius *    notice, this list of conditions and the following disclaimer.
10290001Sglebius * 2. Redistributions in binary form must reproduce the above copyright
11290001Sglebius *    notice, this list of conditions and the following disclaimer in the
12290001Sglebius *    documentation and/or other materials provided with the distribution.
13290001Sglebius * 3. The name of the author may not be used to endorse or promote products
14290001Sglebius *    derived from this software without specific prior written permission.
15290001Sglebius *
16290001Sglebius * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17290001Sglebius * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18290001Sglebius * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19290001Sglebius * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20290001Sglebius * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21290001Sglebius * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22290001Sglebius * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23290001Sglebius * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24290001Sglebius * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25290001Sglebius * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26290001Sglebius */
27290001Sglebius#ifndef EVENT2_TAG_COMPAT_H_INCLUDED_
28290001Sglebius#define EVENT2_TAG_COMPAT_H_INCLUDED_
29290001Sglebius
30290001Sglebius/** @file event2/tag_compat.h
31290001Sglebius
32290001Sglebius    Obsolete/deprecated functions from tag.h; provided only for backwards
33290001Sglebius    compatibility.
34290001Sglebius */
35290001Sglebius
36290001Sglebius/**
37290001Sglebius   @name Misnamed functions
38290001Sglebius
39290001Sglebius   @deprecated These macros are deprecated because their names don't follow
40290001Sglebius     Libevent's naming conventions.  Use evtag_encode_int and
41290001Sglebius     evtag_encode_int64 instead.
42290001Sglebius
43290001Sglebius   @{
44290001Sglebius*/
45290001Sglebius#define encode_int(evbuf, number) evtag_encode_int((evbuf), (number))
46290001Sglebius#define encode_int64(evbuf, number) evtag_encode_int64((evbuf), (number))
47290001Sglebius/**@}*/
48290001Sglebius
49290001Sglebius#endif /* EVENT2_TAG_H_INCLUDED_ */
50