<?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>
