load_rep.sgm 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!-- $XConsortium: load_rep.sgm /main/5 1996/08/30 14:44:20 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN271.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN271.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>ttmedia_load_reply</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>ttmedia_load_reply</Function></RefName>
  17. <RefPurpose>reply to a Display, Edit or Compose request
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: load_rep.sgm /main/5 1996/08/30 14:44:20 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <FuncSynopsis Remap="ANSI">
  28. <FuncSynopsisInfo>#include &lt;Tt/tttk.h>
  29. </FuncSynopsisInfo>
  30. <FuncDef>Tt_message <Function>ttmedia_load_reply</Function></FuncDef>
  31. <ParamDef>Tt_message <Parameter>contract</Parameter></ParamDef>
  32. <ParamDef>const unsigned char *<Parameter>new_contents</Parameter></ParamDef>
  33. <ParamDef>int <Parameter>new_len</Parameter></ParamDef>
  34. <ParamDef>int <Parameter>reply_and_destroy</Parameter></ParamDef>
  35. </FuncSynopsis>
  36. </RefSynopsisDiv>
  37. <RefSect1>
  38. <Title>DESCRIPTION</Title>
  39. <Para>The
  40. <Function>ttmedia_load_reply</Function> function
  41. is used to reply to a Media Exchange request
  42. to display, edit or compose a document.
  43. The editor working on the request usually calls
  44. <Function>ttmedia_load_reply</Function> when the
  45. user has indicated in some way that he or
  46. she is finished viewing or modifying
  47. the document.
  48. </Para>
  49. <Para>If
  50. <Emphasis>new_contents</Emphasis> and
  51. <Emphasis>new_len</Emphasis> are non-
  52. <SystemItem Class="Constant">NULL</SystemItem> and non-zero, respectively,
  53. <Function>ttmedia_load_reply</Function> uses their values to set the new contents of
  54. the document back in the appropriate output argument of
  55. <Emphasis>contract</Emphasis>. If
  56. <Emphasis>reply_and_destroy</Emphasis> is True,
  57. <Function>ttmedia_load_reply</Function> replies to
  58. <Emphasis>contract</Emphasis> and then destroys it.
  59. </Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>RETURN VALUE</Title>
  63. <Para>Upon successful completion, the
  64. <Function>ttmedia_load_reply</Function> function returns the created
  65. <StructName Role="typedef">Tt_message</StructName>; otherwise, it returns an error pointer.
  66. The application can use
  67. &cdeman.tt.ptr.error; to extract one of the following
  68. <StructName Role="typedef">Tt_status</StructName> values from the returned handle:
  69. </Para>
  70. <VariableList>
  71. <VarListEntry>
  72. <Term>TT_ERR_NOMP</Term>
  73. <ListItem>
  74. <Para>The
  75. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  76. </Para>
  77. </ListItem>
  78. </VarListEntry>
  79. <VarListEntry>
  80. <Term>TT_ERR_NOTHANDLER</Term>
  81. <ListItem>
  82. <Para>This application is not the handler for this message.
  83. </Para>
  84. </ListItem>
  85. </VarListEntry>
  86. <VarListEntry>
  87. <Term>TT_ERR_NUM</Term>
  88. <ListItem>
  89. <Para>The integer value passed was invalid (out of range).
  90. </Para>
  91. </ListItem>
  92. </VarListEntry>
  93. <VarListEntry>
  94. <Term>TT_ERR_PROCID</Term>
  95. <ListItem>
  96. <Para>The specified process identifier is out of date or invalid.
  97. </Para>
  98. </ListItem>
  99. </VarListEntry>
  100. </VariableList>
  101. </RefSect1>
  102. <RefSect1>
  103. <Title>APPLICATION USAGE</Title>
  104. <Para>If
  105. <Emphasis>contract</Emphasis> is a
  106. <Symbol Role="Message">Display</Symbol> request, then
  107. <Emphasis>new_contents</Emphasis> and
  108. <Emphasis>new_len</Emphasis> should be zero.
  109. </Para>
  110. </RefSect1>
  111. <RefSect1>
  112. <Title>SEE ALSO</Title>
  113. <Para>&cdeman.Tt.tttk.h;, &cdeman.ttmedia.load;, &cdeman.ttmedia.ptype.declare;, &cdeman.ttmedia.Deposit;.</Para>
  114. </RefSect1>
  115. </RefEntry>
  116. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->