Get_Stat.sgm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!-- $XConsortium: Get_Stat.sgm /main/6 1996/09/08 20:14:13 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.MAN292.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN292.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Get_Status</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Get_Status</Symbol></RefName>
  17. <RefPurpose>retrieve a tool's current status
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Get_Stat.sgm /main/6 1996/09/08 20:14:13 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. <Synopsis>Get_Status(out string <Symbol Role="Variable">status</Symbol>,
  28. out string <Emphasis>vendor</Emphasis>,
  29. out string <Emphasis>toolName</Emphasis>,
  30. out string <Emphasis>toolVersion</Emphasis>
  31. [in messageID <Emphasis>operation2Query</Emphasis>]);
  32. </Synopsis>
  33. </RefSynopsisDiv>
  34. <RefSect1>
  35. <Title>DESCRIPTION</Title>
  36. <Para>The
  37. <Symbol Role="Message">Get_Status</Symbol> request
  38. retrieves the current status of a tool (or,
  39. optionally, of a specific operation being performed by a tool).
  40. </Para>
  41. <Para>The
  42. <Symbol Role="Variable">status</Symbol> argument
  43. is the status retrieved.
  44. </Para>
  45. <Para>The
  46. <Emphasis>vendor</Emphasis> argument
  47. is the name of the vendor of the handling tool.
  48. </Para>
  49. <Para>The
  50. <Emphasis>toolName</Emphasis> argument
  51. is the name of the handling tool.
  52. </Para>
  53. <Para>The
  54. <Emphasis>toolVersion</Emphasis> argument
  55. is the version of the handling tool.
  56. </Para>
  57. </RefSect1>
  58. <RefSect1>
  59. <Title>OPTIONAL</Title>
  60. <Para>The
  61. <Emphasis>operation2Query</Emphasis> argument
  62. is the ID of the request that initiated the operation the
  63. status of which is being requested.
  64. </Para>
  65. </RefSect1>
  66. <RefSect1>
  67. <Title>APPLICATION USAGE</Title>
  68. <Para>The
  69. &cdeman.ttdt.session.join;, and
  70. &cdeman.ttdt.message.accept;, functions can be used to register for, and
  71. help process, the
  72. <Symbol Role="Message">Get_Status</Symbol> request.
  73. </Para>
  74. </RefSect1>
  75. <RefSect1>
  76. <Title>EXAMPLES</Title>
  77. <Para>After sending a
  78. <SystemItem Class="Constant">TT_REQUEST</SystemItem> and storing its handle in
  79. <StructName Role="typedef">Tt_message</StructName> <Emphasis>request_I_sent</Emphasis>, if the handler identifies itself with a
  80. <Symbol Role="Message">Status</Symbol> notice
  81. saved in
  82. <StructName Role="typedef">Tt_message</StructName> <Emphasis>status_msg_from_handler</Emphasis>, then the status of
  83. <Emphasis>request_I_sent</Emphasis> can be queried as in the following example:
  84. </Para>
  85. <InformalExample Remap="indent">
  86. <ProgramListing>Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
  87. tt_message_sender(status_msg_from_handler),
  88. TTDT_GET_STATUS, my_callback);
  89. tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
  90. tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
  91. tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
  92. tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
  93. tt_message_arg_add(msg, TT_IN, Tttk_string,
  94. tt_message_id(request_I_sent));
  95. tt_message_send(msg);
  96. </ProgramListing>
  97. </InformalExample>
  98. </RefSect1>
  99. <RefSect1>
  100. <Title>SEE ALSO</Title>
  101. <Para>&cdeman.tt.message.arg.add;, &cdeman.tt.message.id;, &cdeman.tt.message.send;, &cdeman.ttdt.message.accept;, &cdeman.tt.message.sender;, &cdeman.ttdt.session.join;.</Para>
  102. </RefSect1>
  103. </RefEntry>
  104. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->