VirtualBox

source: vbox/trunk/include/VBox/VDEPlugSymDefs.h@ 76504

Last change on this file since 76504 was 76504, checked in by vboxsync, 5 years ago

VDEPlugSymDefs.h fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/** @file
2 * Symbols from libvdeplug.so to be loaded at runtime for DrvVDE.cpp
3 */
4
5/*
6 * Copyright (C) 2008-2017 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#include <stddef.h>
27#include <sys/types.h>
28
29/** The file name of the DBus library */
30#define VBOX_LIB_VDE_PLUG_NAME "libvdeplug.so"
31#define RT_RUNTIME_LOADER_LIB_NAME VBOX_LIB_VDE_PLUG_NAME
32
33/** The name of the loader function */
34#define RT_RUNTIME_LOADER_FUNCTION DrvVDELoadVDEPlug
35
36/** The following are the symbols which we need from the library. */
37#define RT_RUNTIME_LOADER_INSERT_SYMBOLS \
38 RT_PROXY_STUB(vde_open_real, VDECONN *, \
39 (const char *vde_switch, const char *descr, int interface_version, struct vde_open_args *open_args), \
40 (vde_switch, descr, interface_version, open_args)) \
41 RT_PROXY_STUB(vde_recv, size_t, \
42 (VDECONN *conn, void *buf,size_t len, int flags), \
43 (conn, buf, len, flags)) \
44 RT_PROXY_STUB(vde_send, size_t, \
45 (VDECONN *conn, const void *buf, size_t len, int flags), \
46 (conn, buf, len, flags)) \
47 RT_PROXY_STUB(vde_datafd, int, (VDECONN *conn), (conn)) \
48 RT_PROXY_STUB(vde_close, void, (VDECONN *conn), (conn))
49
50#ifdef VDEPLUG_GENERATE_HEADER
51# define RT_RUNTIME_LOADER_GENERATE_HEADER
52# define RT_RUNTIME_LOADER_GENERATE_DECLS
53# include <iprt/runtime-loader.h>
54# undef RT_RUNTIME_LOADER_GENERATE_HEADER
55# undef RT_RUNTIME_LOADER_GENERATE_DECLS
56#elif defined (VDEPLUG_GENERATE_BODY)
57# define RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
58# include <iprt/runtime-loader.h>
59# undef RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
60#else
61# error This file should only be included to generate stubs for loading the libvdeplug library at runtime
62#endif
63
64#undef RT_RUNTIME_LOADER_LIB_NAME
65#undef RT_RUNTIME_LOADER_INSERT_SYMBOLS
66
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use