Image Utility Instance Update Globals Table of Contents

Server Info

Availability  LightWave® 10
Component  Layout, Modeler
Header  lwserver.h

This global provides a set of functions for querying information about plug-in servers stored in LightWave®'s internal database.

Global Call

   LWServerInfo *srvinfo;
   srvinfo = global( LWSERVERINFO_GLOBAL, GFUSE_TRANSIENT );

The global function returns a pointer to an LWServerInfo.

   typedef struct st_LWServerInfo {
      const char*  (*path)     (const char *, const char *);
      const char** (*list)     (const char *);
   } LWServerInfo;
path = path( class, name )
Returns a full path value to the plug-in module identified by the class and name. The path value is formatted for the current platform. A built-in module is indicated by an empty string (""). If the values do not match any plug-in modules defined in the database, a NULL value is returned.
list = list( class )
Returns a list of strings that represent the identities of all servers registered under the provided class id. The names returned are as they are known to the application, not the "user" names that the server may specify.

The list is terminated by a NULL entry, and the pointer value returned is valid until the next call is made to the function with the same class id.