An application communicates with the Workspace Manager by using functions provided by the desktop. These functions allow you to quickly and easily perform a variety of tasks associated with workspace management. The following is a list of these functions:
DtWsmAddCurrentWorkspaceCallback()
DtWsmAddWorkspaceFunctions ()
DtWsmAddWorkspaceModifiedCallback ()
DtWsmFreeWorkspaceInfo ()
DtWsmGetCurrentBackdropWindows ()
DtWsmGetCurrentWorkspace ()
DtWsmGetWorkspaceInfo ()
DtWsmGetWorkspaceList ()
DtWsmGetWorkspacesOccupied ()
DtWsmOccupyAllWorkspaces ()
DtWsmRemoveWorkspaceCallback ()
DtWsmRemoveWorkspaceFunctions ()
DtWsmSetCurrentWorkspace ()
DtWsmSetWorkspacesOccupied()
Segments of code from two demo programs (occupy.c and wsinfo.c) illustrate the use of these functions. Listings for occupy.c, wsinfo.c, and makefiles for several brands of workstations are in the directory /usr/dt/examples/dtwsm. See the applicable man page for more information on each function.