You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/doc/tutorials/serdev/event_t.xml

50 lines
1.3 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section id="event_t" xmlns:xi="http://www.w3.org/2001/XInclude">
<sectioninfo>
<revhistory>
<revision>
<revnumber>$Revision$</revnumber>
<date>$Date$</date>
</revision>
</revhistory>
</sectioninfo>
<title>Structure <structname>event_t</structname></title>
<para>
The structure represents parsed Event body. The structure is declared
in <filename>parse_event.h</filename> file.
</para>
<para><emphasis>Structure Declaration:</emphasis>
<programlisting>
#define EVENT_OTHER 0
#define EVENT_PRESENCE 1
typedef struct event {
str text; /* Original string representation */
int parsed; /* Parsed variant */
} event_t;
</programlisting>
</para>
<para>
<emphasis>Field Description:</emphasis>
<itemizedlist>
<listitem>
<para>
<structfield>text</structfield> - Package name as text.
</para>
</listitem>
<listitem>
<para>
<structfield>parsed</structfield> - Package name as
integer. It will be EVENT_PRESENCE for presence package and
EVENT_OTHER for rest.
</para>
</listitem>
</itemizedlist>
</para>
</section>