qos_devel.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding='ISO-8859-1'?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!-- Include general documentation entities -->
  5. <!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
  6. %docentities;
  7. ]>
  8. <!-- Module Developer's Guide -->
  9. <chapter>
  10. <title>&develguide;</title>
  11. <section>
  12. <title>Available Functions</title>
  13. <section>
  14. <title>
  15. <function moreinfo="none">register_qoscb (qos, type, cb, param)</function>
  16. </title>
  17. <para>Register a new callback to the qos.</para>
  18. <para>Meaning of the parameters is as follows:</para>
  19. <itemizedlist>
  20. <listitem>
  21. <para><emphasis>struct qos_ctx_st* qos</emphasis> - qos to
  22. register callback to. If maybe NULL only for QOSCB_CREATED callback
  23. type, which is not a per qos type.
  24. </para>
  25. </listitem>
  26. <listitem>
  27. <para><emphasis>int type</emphasis> - types of callbacks; more
  28. types may be register for the same callback function; only
  29. QOSCB_CREATED must be register alone. Possible types:
  30. <itemizedlist>
  31. <listitem>
  32. <para><emphasis>QOSCB_CREATED</emphasis> - called when a new
  33. qos context is created - it's a global type (not associated to
  34. any qos).
  35. </para>
  36. </listitem>
  37. <listitem>
  38. <para><emphasis>QOSCB_ADD_SDP</emphasis> - called when a new SDP
  39. was added to the qos context - it's a per qos type.
  40. </para>
  41. </listitem>
  42. <listitem>
  43. <para><emphasis>QOSCB_UPDATE_SDP</emphasis> - called when an
  44. existing SDP is updated - it's a per qos type.
  45. </para>
  46. </listitem>
  47. <listitem>
  48. <para><emphasis>QOSCB_REMOVE_SDP</emphasis> - called when an
  49. existing SDP is removed - it's a per qos type.
  50. </para>
  51. </listitem>
  52. <listitem>
  53. <para><emphasis>QOSCB_TERMINATED</emphasis> - called when the
  54. qos is terminated.
  55. </para>
  56. </listitem>
  57. </itemizedlist>
  58. </para>
  59. </listitem>
  60. <listitem>
  61. <para><emphasis>qos_cb cb</emphasis> - callback function to be
  62. called. Prototype is: <quote>void (qos_cb)
  63. (struct qos_ctx_st *qos, int type, struct qos_cb_params *params);
  64. </quote>
  65. </para>
  66. </listitem>
  67. <listitem>
  68. <para><emphasis>void *param</emphasis> - parameter to be passed to
  69. the callback function.
  70. </para>
  71. </listitem>
  72. </itemizedlist>
  73. </section>
  74. </section>
  75. </chapter>