void tsmRemoveServerSetsFromDatabase ( TsmDatabase *database, TsmServer *server, NameUrlIds *keep_sets )

Removes all sets for a server from database

Documentation

Removes all sets for a server from database.

This function will take a TsmDatabase and a server name. It will then check every instance of every dataset in the database. Any instances that are found that describe datasets on the specifed server are removed from the database. If a dataset is reduced to having no instances as a result of this, then that dataset is also removed from the database. The same is done to all of the map and model entries in the database.

The NameUrlIds parameter contains a list of (name, url, setId) tuples that define datasets to be kept in the database. If a database instance is found to match any entry in this list, then that instance is kept in the database and is not deleted. A NULL value can be passed here is you have no URLs that you want to keep for the specified server.

Returns:
Nothing (void)
Parameters:
database - the TsmDatabase structure to remove from
server - the server structure containing the location of the server to check against each database instance.
keep_sets - a list of (name,url,setid) tuples defining entries that should not be deleted
Author:
Martin Reddy
Version:
13 December 1997
See Also:
tsmUpdateDatabaseFromServer


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page