Last change
on this file since 31770 was 31770, checked in by vboxsync, 14 years ago |
FT updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.6 KB
|
Line | |
---|
1 | /* $Id: FTMInternal.h 31770 2010-08-19 08:53:41Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * FTM - Internal header file.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef ___FTMInternal_h
|
---|
19 | #define ___FTMInternal_h
|
---|
20 |
|
---|
21 | #include <VBox/cdefs.h>
|
---|
22 | #include <VBox/types.h>
|
---|
23 | #include <VBox/ftm.h>
|
---|
24 | #include <iprt/tcp.h>
|
---|
25 | #include <iprt/semaphore.h>
|
---|
26 |
|
---|
27 | /** @defgroup grp_ftm_int Internals.
|
---|
28 | * @ingroup grp_ftm
|
---|
29 | * @{
|
---|
30 | */
|
---|
31 |
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * FTM VM Instance data.
|
---|
35 | * Changes to this must checked against the padding of the ftm union in VM!
|
---|
36 | */
|
---|
37 | typedef struct FTM
|
---|
38 | {
|
---|
39 | /** Address of the standby VM. */
|
---|
40 | char *pszAddress;
|
---|
41 | /** Port of the standby VM. */
|
---|
42 | unsigned uPort;
|
---|
43 | /** Password to access the syncing server of the standby VM. */
|
---|
44 | char *pszPassword;
|
---|
45 | /** Syncing interval in ms. */
|
---|
46 | unsigned uInterval;
|
---|
47 |
|
---|
48 | /** Set when this VM is the standby FT node. */
|
---|
49 | bool fIsStandbyNode;
|
---|
50 |
|
---|
51 | /** Current active socket. */
|
---|
52 | RTSOCKET hSocket;
|
---|
53 |
|
---|
54 | struct
|
---|
55 | {
|
---|
56 | PRTTCPSERVER hServer;
|
---|
57 | } standby;
|
---|
58 |
|
---|
59 | struct
|
---|
60 | {
|
---|
61 | RTSEMEVENT hShutdownEvent;
|
---|
62 | } master;
|
---|
63 |
|
---|
64 | } FTM;
|
---|
65 |
|
---|
66 | /** @} */
|
---|
67 |
|
---|
68 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.