Previous Next  

Element: Shared_Library_API

Document type

Shared_Library_API

Document XPath

/Shared_Library_API

Schema XPath

/Shared_Library_API

Description

The Shared_Library_API element is the root element of a Shared_Library_API document. A Shared_Library_API document describes the interface of a shared library. This document is used to build the stubs file that will be used to build applications that use your library.

When creating a shared library description you should begin with an XML declaration:

<?xml version="1.0" encoding="UTF-8"?>
			

Following the XML declaration, insert the Shared_Library_API element:

<Shared_Library_API 
 xmlns="http://www.windriver.com/vxWorks653/SharedLibraryAPI"
 xmlns:xi="http://www.w3.org/2001/XInclude" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.windriver.com/vxWorks653/SharedLibraryAPI
 ../target/vThreads/config/comps/xml/SharedLibraryAPI.xsd"
 Name="vThreads">
 			

The Shared_Library_API element must include the required XML attributes that identify the schema and namespace for the document. The first three attributes are standard and should be entered exactly as shown. The xsi:schemaLocation attribute associates the namespace (http://www.windriver.com/vxWorks653/SharedLibraryAPI) with the schema file (SharedLibraryAPI.xsd). You must provide the correct path to your copy of the schema. The location of the schema files in the installation is /target/vThreads/config/comps/xml. If you use a schema-aware XML editor to create your files, it will probably create these attributes for you.

The attribute specifies the name of the shared library API (which is not the same thing as the name of the name of the shared library, which is specified by /Module/SharedLibraryRegions/SharedLibrary/@Name).

Use

Required

Children

Interface

Interface_Subset

Attributes

Name

Restrictions

None

Attribute: Name

Document XPath
/Shared_Library_API/@Name
Schema XPath
/Shared_Library_API/@Name
Description

The name of the shared library API. This name is used at runtime to look up the correct shared library entry point table for a function call.

Use

Optional

Target location

Shared library binary, shared library stubs

XML data type

xs:string

Destination data type

N/A

Behavior if not specified

N/A

Values with special meanings

None

Restrictions

None




Generated on 2007-10-15 17:17:22.