to_body.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="to_body" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. <revhistory>
  7. <revision>
  8. <revnumber>$Revision$</revnumber>
  9. <date>$Date$</date>
  10. </revision>
  11. </revhistory>
  12. </sectioninfo>
  13. <title>Structure <structname>to_body</structname></title>
  14. <para>
  15. The structure represents parsed To body. The structure is declared in
  16. <filename>parse_to.h</filename> file.
  17. </para>
  18. <para><emphasis>Structure Declaration:</emphasis></para>
  19. <programlisting>
  20. struct to_param {
  21. int type; /* Type of parameter */
  22. str name; /* Name of parameter */
  23. str value; /* Parameter value */
  24. struct to_param* next; /* Next parameter in the list */
  25. };
  26. struct to_body{
  27. int error; /* Error code */
  28. str body; /* The whole header field body */
  29. str uri; /* URI */
  30. str tag_value; /* Value of tag */
  31. struct to_param *param_lst; /* Linked list of parameters */
  32. struct to_param *last_param; /* Last parameter in the list */
  33. };
  34. </programlisting>
  35. <para>
  36. Structure <structname>to_param</structname> is a temporary structure
  37. representing a To <acronym>URI</acronym> parameter. Right now only TAG
  38. parameter will be marked in <structfield>type</structfield> field. All
  39. other parameters will have the same type.
  40. </para>
  41. <para><emphasis>Field Description:</emphasis></para>
  42. <itemizedlist>
  43. <listitem>
  44. <para>
  45. <structfield>error</structfield> - Error code will be put here
  46. when parsing of To body fails.
  47. </para>
  48. </listitem>
  49. <listitem>
  50. <para>
  51. <structfield>body</structfield> - The whole header field body.
  52. </para>
  53. </listitem>
  54. <listitem>
  55. <para>
  56. <structfield>uri</structfield> - <acronym>URI</acronym> of the
  57. To header field.
  58. </para>
  59. </listitem>
  60. <listitem>
  61. <para>
  62. <structfield>tag_value</structfield> - Value of tag parameter
  63. if present.
  64. </para>
  65. </listitem>
  66. <listitem>
  67. <para>
  68. <structfield>param_lst</structfield> - Linked list of all parameters.
  69. </para>
  70. </listitem>
  71. <listitem>
  72. <para>
  73. <structfield>last_param</structfield> - Pointer to the last parameter in the linked list.
  74. </para>
  75. </listitem>
  76. </itemizedlist>
  77. </section>