ExportPublicObject

Exports a symbol for use by other NLM applications.

Library:LibC
Classification:NetWare OS
Service:NetWare Platform

Syntax

  #include <netware.h> 
   
  int   ExportPublicObject (
     void         *NLMHandle,
     const char   *name,
     void         *object);
  

Parameters

NLMHandle

(IN) Points to the handle of the NLM application which is exporting the symbol; the NLM handle is obtained by calling getnlmhandle.

name

(IN) Points to a symbol name.

object

(IN) Points to the symbol. To avoid collision with other exported symbols, the name should be prefixed with the name of the application exporting the symbol. The application name should be in all capitals. For example:

  "FOOLIB@myFooFunction"
  

Return Values

If successful, returns 0. Otherwise returns a nonzero error code.

Decimal

Name

Description

-1

The symbol could not be exported.

5

ENOMEM

No memory is available to allocate for the symbol name.

7

EEXIST

The symbol already exists in the symbol table.

9

ENIVAL

The NLMHandle parameter is invalid.

See Also