VirtualBox

source: vbox/trunk/src/VBox/Devices/Network/VDEPlugSymDefs.h@ 28800

Last change on this file since 28800 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/** @file
2 * Symbols from libvdeplug.so.2 to be loaded at runtime for DrvVDE.cpp
3 */
4
5/*
6 * Copyright (C) 2008-2010 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
17#include <stddef.h>
18#include <sys/types.h>
19/** Opaque connection type */
20struct vdeconn;
21typedef struct vdeconn VDECONN;
22
23/** Structure to be passed to the open function describing the connection.
24 * All members can be left zero to use the default values. */
25struct vde_open_args
26{
27 /** The port of the switch to connect to */
28 int port;
29 /** The group to set ownership of the port socket to */
30 char *group;
31 /** The file mode to set the port socket to */
32 mode_t mode;
33};
34
35/** The file name of the DBus library */
36#define RT_RUNTIME_LOADER_LIB_NAME "libvdeplug.so.2"
37
38/** The name of the loader function */
39#define RT_RUNTIME_LOADER_FUNCTION DrvVDELoadVDEPlug
40
41/** The following are the symbols which we need from the library. */
42#define RT_RUNTIME_LOADER_INSERT_SYMBOLS \
43 RT_PROXY_STUB(vde_open_real, VDECONN *, \
44 (const char *vde_switch, const char *descr, int interface_version, struct vde_open_args *open_args), \
45 (vde_switch, descr, interface_version, open_args)) \
46 RT_PROXY_STUB(vde_recv, size_t, \
47 (VDECONN *conn,void *buf,size_t len,int flags), \
48 (conn, buf, len, flags)) \
49 RT_PROXY_STUB(vde_send, size_t, \
50 (VDECONN *conn,const void *buf,size_t len,int flags), \
51 (conn, buf, len, flags)) \
52 RT_PROXY_STUB(vde_datafd, int, (VDECONN *conn), (conn))
53
54#ifdef VDEPLUG_GENERATE_HEADER
55# define RT_RUNTIME_LOADER_GENERATE_HEADER
56# define RT_RUNTIME_LOADER_GENERATE_DECLS
57# include <iprt/runtime-loader.h>
58# undef RT_RUNTIME_LOADER_GENERATE_HEADER
59# undef RT_RUNTIME_LOADER_GENERATE_DECLS
60#elif defined (VDEPLUG_GENERATE_BODY)
61# define RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
62# include <iprt/runtime-loader.h>
63# undef RT_RUNTIME_LOADER_GENERATE_BODY_STUBS
64#else
65# error This file should only be included to generate stubs for loading the \
66libvdeplug library at runtime
67#endif
68
69#undef RT_RUNTIME_LOADER_LIB_NAME
70#undef RT_RUNTIME_LOADER_INSERT_SYMBOLS
Note: See TracBrowser for help on using the repository browser.

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