Accessing the Workspace
For every workspace, a new distinct storage location is maintained in the user’s personal folder on the server (server-side workspace) and on the client (client-side workspace cache). Together, the server-side workspace and the client-side workspace cache make up the workspace.
Workspace Data
Functions Introduced:
• ProServerworkspacedataAlloc()
• ProServerworkspacedataNameGet()
• ProServerworkspacedataContextGet()
• ProServerworkspacedataFree()
• ProServerworkspacedataProarrayFree()
The workspace data is an opaque handle that contains the name and context of the workspace. The function ProServerWorkspacesCollect() returns an array of workspace data. Workspace data is also required for the function ProServerWorkspaceCreate() to create a workspace with a given name and a specific context.
The function ProServerworkspacedataAlloc() creates a workspace data structure to describe a workspace. The workspace contains the name of the workspace and the context in which the workspace is stored.
The function ProServerworkspacedataNameGet() retrieves the name of the workspace from the workspace data.
The function ProServerworkspacedataContextGet() retrieves the context of the workspace from the workspace data.
Use the function ProServerworkspacedataFree() to free the workspace data structure from memory.
Use the function ProServerworkspacedataProarrayFree() to free the workspace data array from the memory.