Commit 6a02a679 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Options.h: reformat

parent 78bb80a8
...@@ -94,346 +94,267 @@ typedef enum _KeycodeConversion ...@@ -94,346 +94,267 @@ typedef enum _KeycodeConversion
typedef struct _AgentOptions typedef struct _AgentOptions
{ {
/* /*
* Link type of the NX connection or none, * Link type of the NX connection or none, if this is a direct X11
* if this is a direct X11 connection. * connection.
*/ */
int LinkType; int LinkType;
/* /*
* Is agent running in desktop mode? This * Is agent running in desktop mode? This is presently the default.
* is presently the default.
*/ */
int Desktop; int Desktop;
/* /*
* True if user activated rootless mode. * True if user activated rootless mode.
*/ */
int Rootless; int Rootless;
/* /*
* True for shadow mode. * True for shadow mode.
*/ */
int Shadow; int Shadow;
/* /*
* True if user activated persistent mode. * True if user activated persistent mode.
*/ */
int Persistent; int Persistent;
/* /*
* True if user activated fullscreen mode. * True if user activated fullscreen mode.
*/ */
int Fullscreen; int Fullscreen;
/* /*
* True if the fullscreen NX session will * True if the fullscreen NX session will extend on all available
* extend on all available screens. * screens.
*/ */
int AllScreens; int AllScreens;
/* /*
* Set to the auto-disconnect timeout, if * Set to the auto-disconnect timeout, if the user activated this
* the user activated this feature. * feature.
*/ */
int Timeout; int Timeout;
/* /*
* Geometry of the agent's window. * Geometry of the agent's window.
*/ */
int X, Y, Width, Height;
int X;
int Y;
int Width;
int Height;
int BorderWidth; int BorderWidth;
/* /*
* Geometry of the agent's window in window * Geometry of the agent's window in window mode. Used to restore
* mode. Used to restore window size when * window size when switching back to window mode from fullscreen.
* switching back to window mode from full-
* screen.
*/ */
int WMBorderWidth; int WMBorderWidth;
int WMTitleHeight; int WMTitleHeight;
int SavedX; int SavedX, SavedY, SavedWidth, SavedHeight;
int SavedY;
int SavedWidth;
int SavedHeight;
int SavedRootWidth; int SavedRootWidth, SavedRootHeight;
int SavedRootHeight;
/* /*
* Set if agent is running nested in another * Set if agent is running nested in another agent X server.
* agent X server.
*/ */
int Nested; int Nested;
/* /*
* Selected backing-store mode. * Selected backing-store mode.
*/ */
BackingStoreMode BackingStore; BackingStoreMode BackingStore;
/* /*
* Selected clipboard mode. * Selected clipboard mode.
*/ */
ClipboardMode Clipboard; ClipboardMode Clipboard;
/* /*
* Enable agent to use the MITSHM extension in * Enable agent to use the MITSHM extension in path from remote
* path from remote proxy to the real X server. * proxy to the real X server.
*/ */
int SharedMemory; int SharedMemory;
/* /*
* Enable agent to use shared Pixmaps * Enable agent to use shared Pixmaps
*/ */
int SharedPixmaps; int SharedPixmaps;
/* /*
* Enable agent to propagate keyboard and pointer * Enable agent to propagate keyboard and pointer device
* device configuration to the remote X server. * configuration to the remote X server.
*/ */
int DeviceControl; int DeviceControl;
/* /*
* Explicitly asked config propagation. * Explicitly asked config propagation.
*/ */
int DeviceControlUserDefined; int DeviceControlUserDefined;
/* /*
* Resuming keyboard device corrects keymap if session * Resuming keyboard device corrects keymap if session migrates
* migrates across platforms with different keycode * across platforms with different keycode layout.
* layout.
*/ */
int ResetKeyboardAtResume; int ResetKeyboardAtResume;
/* /*
* Reset server when the last client disconnects. * Reset server when the last client disconnects.
*/ */
int Reset; int Reset;
/* /*
* Geometry of the agent root window, relative to * Geometry of the agent root window, relative to the agent default
* the agent default window. * window.
*/ */
int RootX, RootY, RootWidth, RootHeight;
int RootX;
int RootY;
int RootWidth;
int RootHeight;
/* /*
* Horizontal and vertical span of the * Horizontal and vertical span of the agent viewport.
* agent viewport.
*/ */
int ViewportXSpan, ViewportYSpan;
int ViewportXSpan;
int ViewportYSpan;
/* /*
* True if the user can resize the desktop * True if the user can resize the desktop by dragging the window
* by dragging the window border. * border.
*/ */
int DesktopResize; int DesktopResize;
/* /*
* The scaling ratio of the shadow agent. * The scaling ratio of the shadow agent.
*/ */
int Ratio, XRatio, YRatio;
int Ratio; float FloatRatio, FloatXRatio, FloatYRatio;
int XRatio;
int YRatio;
float FloatRatio;
float FloatXRatio;
float FloatYRatio;
/* /*
* The shadow agent uses the Damage extension. * The shadow agent uses the Damage extension.
*/ */
int UseDamage; int UseDamage;
/* /*
* Was the agent run with the -B option? * Was the agent run with the -B option?
*/ */
int Binder; int Binder;
char *BinderOptions; char *BinderOptions;
/* /*
* Set if the agent has to connect to a * Set if the agent has to connect to a desktop manager to start the
* desktop manager to start the session. * session.
*/ */
int Xdmcp; int Xdmcp;
/* /*
* Size of the Xlib display buffer. The * Size of the Xlib display buffer. The default is set according to
* default is set according to the link * the link type.
* type.
*/ */
int DisplayBuffer; int DisplayBuffer;
/* /*
* Buffer coalescence timeout. * Buffer coalescence timeout.
*/ */
int DisplayCoalescence; int DisplayCoalescence;
/* /*
* Use the composite extension when * Use the composite extension when available on the remote display.
* available on the remote display.
*/ */
int Composite; int Composite;
/* /*
* If set, don't skip internal operations * If set, don't skip internal operations when the agent window is
* when the agent window is not fully visible. * not fully visible.
*/ */
int IgnoreVisibility; int IgnoreVisibility;
/* /*
* If set, prevent the shadow session to * If set, prevent the shadow session to interact with master
* interact with master display. * display.
*/ */
int ViewOnly; int ViewOnly;
/* /*
* If true select a lossy or lossless comp- * If true select a lossy or lossless compression method based on
* ression method based on the characterist- * the characteristics of the image.
* ics of the image.
*/ */
int Adaptive; int Adaptive;
/* /*
* Stream the images and update the display * Stream the images and update the display when the image has been
* when the image has been completely trans- * completely transerred.
* ferred.
*/ */
int Streaming; int Streaming;
/* /*
* Use a lazy approach in updating the remote * Use a lazy approach in updating the remote display. This means
* display. This means delaying the bandwidth * delaying the bandwidth consuming graphic operations and
* consuming graphic operations and synchroniz- * synchronizing the screen at idle time.
* ing the screen at idle time.
*/ */
int DeferLevel; int DeferLevel;
/* /*
* Maximum elapsed time before a new full * Maximum elapsed time before a new full synchronization.
* synchronization.
*/ */
unsigned long DeferTimeout; unsigned long DeferTimeout;
/* /*
* Maximum size of the tile used when sending * Maximum size of the tile used when sending an image to the remote
* an image to the remote display. * display.
*/ */
int TileWidth, TileHeight;
int TileWidth;
int TileHeight;
/* /*
* Enabling/disabling the pulldown menu. * Enabling/disabling the pulldown menu.
*/ */
int Menu; int Menu;
/* /*
* Enabling/disabling the magic pixel. * Enabling/disabling the magic pixel.
*/ */
int MagicPixel; int MagicPixel;
/* /*
* Specify the Operative System of the client. * Specify the Operative System of the client.
*/ */
int ClientOs; int ClientOs;
/* /*
* Inhibit some XKEYBOARD requests. * Inhibit some XKEYBOARD requests.
*/ */
int InhibitXkb; int InhibitXkb;
/* /*
* Maximum number of bytes that can be pasted from * Maximum number of bytes that can be pasted from an NX session
* an NX session into an external application. * into an external application.
*/ */
int CopyBufferSize; int CopyBufferSize;
/* /*
* Max image data rate to the encoder input. * Max image data rate to the encoder input.
*/ */
int ImageRateLimit; int ImageRateLimit;
/* /*
* True if agent should not exit if there are no * True if agent should not exit if there are no clients in rootless
* clients in rootless mode * mode
*/ */
int NoRootlessExit; int NoRootlessExit;
/* /*
* Store if the user wants Xinerama. There are variables called * Store if the user wants Xinerama. There are variables called
* noPanoramiXExtension and noRRXineramaExtensison in os/utils.c but * noPanoramiXExtension and noRRXineramaExtensison in os/utils.c but
* we cannot rely on them because RandR and PanoramiX change their * we cannot rely on them because RandR and PanoramiX change their
* values when trying to initialize. So we use this variable to * values when trying to initialize. So we use this variable to save
* save the user preference provided by the -/+(rr)xinerama parameter(s) * the user preference provided by the -/+(rr)xinerama parameter(s)
* before initializing those extensions. * before initializing those extensions.
*/ */
int Xinerama; int Xinerama;
/* /*
* Sleep delay in microseconds. * Sleep delay in microseconds.
*/ */
unsigned int SleepTime; unsigned int SleepTime;
/* /*
* Tolerance - tightens or loosens reconnect checks. * Tolerance - tightens or loosens reconnect checks.
*/ */
ToleranceChecksMode ReconnectTolerance; ToleranceChecksMode ReconnectTolerance;
/* /*
...@@ -473,8 +394,7 @@ extern AgentOptionsPtr nxagentOptionsPtr; ...@@ -473,8 +394,7 @@ extern AgentOptionsPtr nxagentOptionsPtr;
extern void nxagentInitOptions(void); extern void nxagentInitOptions(void);
/* /*
* Initialize some options to the default values * Initialize some options to the default values at reconnection.
* at reconnection.
*/ */
extern void nxagentResetOptions(void); extern void nxagentResetOptions(void);
...@@ -486,8 +406,8 @@ extern void nxagentResetOptions(void); ...@@ -486,8 +406,8 @@ extern void nxagentResetOptions(void);
extern void nxagentSaveOptions(void); extern void nxagentSaveOptions(void);
/* /*
* Restore the options reset by nxagentResetOptions * Restore the options reset by nxagentResetOptions to their backup
* to their backup value. * value.
*/ */
extern void nxagentRestoreOptions(void); extern void nxagentRestoreOptions(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment