summaryrefslogtreecommitdiff
path: root/src/VBox/Devices/Network/solaris/vbox-libdlpi.h
blob: 0d8ca42bb13c4b57206e5d2ab8bf40dd3b12e393 (plain)
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
/** $Id: vbox-libdlpi.h 28800 2010-04-27 08:22:32Z vboxsync $ */
/** @file
 * Dynamically load libdpli & symbols on Solaris hosts, Internal header.
 */

/*
 * Copyright (C) 2008 Oracle Corporation
 *
 * This file is part of VirtualBox Open Source Edition (OSE), as
 * available from http://www.virtualbox.org. This file is free software;
 * you can redistribute it and/or modify it under the terms of the GNU
 * General Public License (GPL) as published by the Free Software
 * Foundation, in version 2 as it comes in the "COPYING" file of the
 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
 */

#ifndef ____H_VBOX_LIBDLPI
#define ____H_VBOX_LIBDLPI

#define LIB_DLPI "libdlpi.so"
#include <libdlpi.h>

extern int (*g_pfnLibDlpiOpen)(const char *, dlpi_handle_t *, uint_t);
extern void (*g_pfnLibDlpiClose)(dlpi_handle_t);
extern int (*g_pfnLibDlpiInfo)(dlpi_handle_t, dlpi_info_t *, uint_t);
extern int (*g_pfnLibDlpiBind)(dlpi_handle_t, uint_t, uint_t *);
extern int (*g_pfnLibDlpiSetPhysAddr)(dlpi_handle_t, uint_t, const void *, size_t);
extern int (*g_pfnLibDlpiPromiscon)(dlpi_handle_t, uint_t);
extern int (*g_pfnLibDlpiRecv)(dlpi_handle_t, void *, size_t *, void *, size_t *, int, dlpi_recvinfo_t *);
extern int (*g_pfnLibDlpiFd)(dlpi_handle_t);

extern bool VBoxLibDlpiFound(void);

#endif /* ____H_VBOX_LIBDLPI not defined */