5.1.1.4.1 Information Providing Function
This function is optional. If it is used, it is first invoked after the plug-in shared library is loaded during GWWS server startup. If you want to implement more than one interface in one plug-in library, you must implement this function and return the counts, IDs, and names of the interfaces in the library.
Returning a 0
value indicates the function has
executed successfully. Returning a value other than 0
indicates failure. If this functions fails, the plug-in is not
loaded, and the GWWS server will not start.
The function uses the following syntax:
int _ws_pi_get_Id_and_Names(int * count, char **ids, char **names);
You must return the total count of implementation in the library
in arguments count
. The arguments ids
andnames
should contain all implemented interface
ids
and names
, separated by a semicolon
“;”.
Parent topic: Plug-In Register Functions