GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Instantiate(special file) Instantiate(special file)

Instantiate — open a document factory

[file] Instantiate(in mediaType template);

The Instantiate request causes the handler to open a factory for mediaType documents based on template. Usually this means opening an untitled buffer not bound to any file. The handler replies when the untitled buffer is successfully opened.

The template argument is the template of the document. If this argument is unset (in other words, has a value of (char *)0), then the template to us is in the file named in the message's file attribute. If the file attribute is also unset, no template has been supplied, and the factory should use its default template (usually, an empty buffer). The data type (mediaType) of the template argument should be string, unless nulls are valid in the given media type, in which case the data type must be bytes.

The ttmedia_ptype_declare(3) function can be used to register for, and help process, this message.

This message can be sent with the ttmedia_load(3) function.

To instantiate an appointment document, the application can send an Instantiate request with a first argument whose vtype is DT_APPOINTMENT.

The ToolTalk service may return one of the following errors in processing the Instantiate request:

The file that was alleged to contain the template does not exist.
The template is not a valid instance of the media type.

ttmedia_ptype_declare(3), ttmedia_load(3); Intro, Deposit, Edit, Status requests.


Search for    or go to Top of page |  Section s |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.