![]() |
![]() |
![]() |
Shared_Library_API
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).
Required
None
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.
Optional
Shared library binary, shared library stubs
N/A
N/A
None
None
Generated on 2007-10-15 17:17:22.