VirtualBox

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

Last change on this file since 78307 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • 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-2019 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/** The file name of the DBus library */
27#define VBOX_LIB_VDE_PLUG_NAME "libvdeplug.so"
28#define RT_RUNTIME_LOADER_LIB_NAME VBOX_LIB_VDE_PLUG_NAME
29
30/** The name of the loader function */
31#define RT_RUNTIME_LOADER_FUNCTION DrvVDELoadVDEPlug
32
33/** The following are the symbols which we need from the library. */
34#define RT_RUNTIME_LOADER_INSERT_SYMBOLS \
35 RT_PROXY_STUB(vde_open_real, VDECONN *, \
36 (const char *vde_switch, const char *descr, int interface_version, struct vde_open_args *open_args), \
37 (vde_switch, descr, interface_version, open_args)) \
38 RT_PROXY_STUB(vde_recv, size_t, \
39 (VDECONN *conn, void *buf,size_t len, int flags), \
40 (conn, buf, len, flags)) \
41 RT_PROXY_STUB(vde_send, size_t, \
42 (VDECONN *conn, const void *buf, size_t len, int flags), \
43 (conn, buf, len, flags)) \
44 RT_PROXY_STUB(vde_datafd, int, (VDECONN *conn), (conn)) \
45 RT_PROXY_STUB(vde_close, void, (VDECONN *conn), (conn))
46
47#ifdef VDEPLUG_GENERATE_HEADER
48# define RT_RUNTIME_LOADER_GENERATE_HEADER
49# define RT_RUNTIME_LOADER_GENERATE_DECLS
50# include <iprt/runtime-loader.h>
51# undef RT_RUNTIME_LOADER_GENERATE_HEADER
52# undef RT_RUNTIME_LOADER_GENERATE_DECLS
53#elif defined (VDEPLUG_GENERATE_BODY)
54# define RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
55# include <iprt/runtime-loader.h>
56# undef RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
57#else
58# error This file should only be included to generate stubs for loading the libvdeplug library at runtime
59#endif
60
61#undef RT_RUNTIME_LOADER_LIB_NAME
62#undef RT_RUNTIME_LOADER_INSERT_SYMBOLS
63
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette