|
||||
File indexing completed on 2025-01-18 09:57:12
0001 /* 0002 * Copyright (c) 2006-2007 Niels Provos <provos@citi.umich.edu> 0003 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 0004 * 0005 * Redistribution and use in source and binary forms, with or without 0006 * modification, are permitted provided that the following conditions 0007 * are met: 0008 * 1. Redistributions of source code must retain the above copyright 0009 * notice, this list of conditions and the following disclaimer. 0010 * 2. Redistributions in binary form must reproduce the above copyright 0011 * notice, this list of conditions and the following disclaimer in the 0012 * documentation and/or other materials provided with the distribution. 0013 * 3. The name of the author may not be used to endorse or promote products 0014 * derived from this software without specific prior written permission. 0015 * 0016 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 0017 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 0018 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0019 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0020 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0021 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0022 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0023 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0024 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0025 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0026 */ 0027 #ifndef EVENT2_RPC_COMPAT_H_INCLUDED_ 0028 #define EVENT2_RPC_COMPAT_H_INCLUDED_ 0029 0030 /** @file event2/rpc_compat.h 0031 0032 Deprecated versions of the functions in rpc.h: provided only for 0033 backwards compatibility. 0034 0035 */ 0036 0037 #ifdef __cplusplus 0038 extern "C" { 0039 #endif 0040 0041 /** backwards compatible accessors that work only with gcc */ 0042 #if defined(__GNUC__) && !defined(__STRICT_ANSI__) 0043 0044 #undef EVTAG_ASSIGN 0045 #undef EVTAG_GET 0046 #undef EVTAG_ADD 0047 0048 #define EVTAG_ASSIGN(msg, member, args...) \ 0049 (*(msg)->base->member##_assign)(msg, ## args) 0050 #define EVTAG_GET(msg, member, args...) \ 0051 (*(msg)->base->member##_get)(msg, ## args) 0052 #define EVTAG_ADD(msg, member, args...) \ 0053 (*(msg)->base->member##_add)(msg, ## args) 0054 #endif 0055 #define EVTAG_LEN(msg, member) ((msg)->member##_length) 0056 0057 #ifdef __cplusplus 0058 } 0059 #endif 0060 0061 #endif /* EVENT2_EVENT_COMPAT_H_INCLUDED_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |