file_add.sgm 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!-- $XConsortium: file_add.sgm /main/5 1996/08/30 14:13:52 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.MAN195.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN195.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_file_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_file_add</Function></RefName>
  17. <RefPurpose>add a value to the file field of a pattern
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: file_add.sgm /main/5 1996/08/30 14:13:52 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/tt_c.h>
  29. </FuncSynopsisInfo>
  30. <FuncDef>Tt_status <Function>tt_pattern_file_add</Function></FuncDef>
  31. <ParamDef>Tt_pattern <Parameter>p</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>file</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_pattern_file_add</Function> function
  39. adds a value to the file field of the specified pattern.
  40. </Para>
  41. <Para>The application can use this call to set individual files
  42. on individual patterns.
  43. </Para>
  44. <Para>The
  45. <Emphasis>p</Emphasis> argument is a unique handle for a message pattern.
  46. This handle is returned after
  47. &cdeman.tt.pattern.create; is called.
  48. The
  49. <Symbol Role="Variable">file</Symbol> argument is the name of the file of the specified pattern.
  50. </Para>
  51. </RefSect1>
  52. <RefSect1>
  53. <Title>RETURN VALUE</Title>
  54. <Para>Upon successful completion, the
  55. <Function>tt_pattern_file_add</Function> function returns the status of the operation as one of the following
  56. <StructName Role="typedef">Tt_status</StructName> values:
  57. </Para>
  58. <VariableList>
  59. <VarListEntry>
  60. <Term>TT_OK</Term>
  61. <ListItem>
  62. <Para>The operation completed successfully.
  63. </Para>
  64. </ListItem>
  65. </VarListEntry>
  66. <VarListEntry>
  67. <Term>TT_ERR_NOMP</Term>
  68. <ListItem>
  69. <Para>The
  70. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  71. </Para>
  72. </ListItem>
  73. </VarListEntry>
  74. <VarListEntry>
  75. <Term>TT_ERR_POINTER</Term>
  76. <ListItem>
  77. <Para>The pointer passed does not point to an object of
  78. the correct type for this operation.
  79. </Para>
  80. </ListItem>
  81. </VarListEntry>
  82. </VariableList>
  83. </RefSect1>
  84. <RefSect1>
  85. <Title>APPLICATION USAGE</Title>
  86. <Para>However, this call does not cause the pattern's ToolTalk
  87. session to be stored in the database.
  88. </Para>
  89. </RefSect1>
  90. <RefSect1>
  91. <Title>SEE ALSO</Title>
  92. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.create;.</Para>
  93. </RefSect1>
  94. </RefEntry>
  95. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->