/usr/include/callback.h is in libffcall1-dev 1.10+cvs20100619-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /* callback.h. Generated from callback.h.in by configure. */
#ifndef _CALLBACK_H
#define _CALLBACK_H
/*
* Copyright 1997-1999, 2005 Bruno Haible, <bruno@clisp.org>
*
* This is free software distributed under the GNU General Public Licence
* described in the file COPYING. Contact the author if you don't have this
* or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
* on this software.
*/
#if !defined(LIBFFCALL_VERSION)
# define LIBFFCALL_VERSION 0x010B
#endif
#include "vacall_r.h"
#include "trampoline_r.h"
typedef void (*__VA_function) (void*, va_alist);
#if 0
extern __TR_function alloc_callback (__VA_function, void*);
extern void free_callback (__TR_function);
extern int is_callback (void*);
extern __VA_function callback_address (void*);
extern void* callback_data (void*);
#else
#define alloc_callback(address,data) \
alloc_trampoline_r((__TR_function)&__vacall_r,(void*)(__VA_function)(address),(void*)(data))
#define free_callback(function) \
free_trampoline_r(function)
#define is_callback(function) \
(is_trampoline_r(function) \
&& trampoline_r_address(function) == (__TR_function)&__vacall_r \
)
#define callback_address(function) \
(__VA_function)trampoline_r_data0(function)
#define callback_data(function) \
trampoline_r_data1(function)
#endif
#endif /* _CALLBACK_H */
|