<refentry id="liblivejournal-entry">
<refmeta>
<refentrytitle>entry</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBLIVEJOURNAL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>entry</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



enum        <link linkend="LJSecurityType">LJSecurityType</link>;
#define     <link linkend="LJ-SECURITY-ALLOWMASK-FRIENDS-CAPS">LJ_SECURITY_ALLOWMASK_FRIENDS</link>
void        <link linkend="lj-security-from-strings">lj_security_from_strings</link>        (<link linkend="LJSecurity">LJSecurity</link> *security,
                                             const char *sectext,
                                             const char *allowmask);
void        <link linkend="lj-security-to-strings">lj_security_to_strings</link>          (<link linkend="LJSecurity">LJSecurity</link> *security,
                                             char **sectext,
                                             char **allowmask);
void        <link linkend="lj-security-append-to-request">lj_security_append_to_request</link>   (<link linkend="LJSecurity">LJSecurity</link> *security,
                                             <link linkend="LJRequest">LJRequest</link> *request);
enum        <link linkend="LJCommentsType">LJCommentsType</link>;
enum        <link linkend="LJEntryFileType">LJEntryFileType</link>;
<link linkend="LJEntry">LJEntry</link>*    <link linkend="lj-entry-new">lj_entry_new</link>                    (void);
<link linkend="LJEntry">LJEntry</link>*    <link linkend="lj-entry-new-from-file">lj_entry_new_from_file</link>          (<link linkend="FILE-CAPS">FILE</link> *f,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> type,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> *typeret,
                                             <link linkend="GError">GError</link> **err);
<link linkend="LJEntry">LJEntry</link>*    <link linkend="lj-entry-new-from-filename">lj_entry_new_from_filename</link>      (const char *filename,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> type,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> *typeret,
                                             <link linkend="GError">GError</link> **err);
<link linkend="LJEntry">LJEntry</link>*    <link linkend="lj-entry-new-from-xml-node">lj_entry_new_from_xml_node</link>      (<link linkend="xmlDocPtr">xmlDocPtr</link> doc,
                                             <link linkend="xmlNodePtr">xmlNodePtr</link> node);
<link linkend="LJEntry">LJEntry</link>*    <link linkend="lj-entry-new-single-from-result">lj_entry_new_single_from_result</link> (<link linkend="LJResult">LJResult</link> *result,
                                             <link linkend="GError">GError</link> **err);
<link linkend="LJEntry">LJEntry</link>*    <link linkend="lj-entry-copy">lj_entry_copy</link>                   (<link linkend="LJEntry">LJEntry</link> *e);
void        <link linkend="lj-entry-free">lj_entry_free</link>                   (<link linkend="LJEntry">LJEntry</link> *e);
char*       <link linkend="lj-entry-make-summary">lj_entry_make_summary</link>           (<link linkend="LJEntry">LJEntry</link> *entry);
char*       <link linkend="lj-get-summary">lj_get_summary</link>                  (char *subject,
                                             char *event);
void        <link linkend="lj-entry-set-request-fields">lj_entry_set_request_fields</link>     (<link linkend="LJEntry">LJEntry</link> *entry,
                                             <link linkend="LJRequest">LJRequest</link> *request);
<link linkend="xmlNodePtr">xmlNodePtr</link>  <link linkend="lj-entry-to-xml-node">lj_entry_to_xml_node</link>            (<link linkend="LJEntry">LJEntry</link> *entry,
                                             <link linkend="xmlDocPtr">xmlDocPtr</link> doc);
<link linkend="gboolean">gboolean</link>    <link linkend="lj-entry-to-xml-file">lj_entry_to_xml_file</link>            (<link linkend="LJEntry">LJEntry</link> *entry,
                                             const char *filename,
                                             <link linkend="GError">GError</link> **err);
<link linkend="GString">GString</link>*    <link linkend="lj-entry-to-rfc822">lj_entry_to_rfc822</link>              (<link linkend="LJEntry">LJEntry</link> *entry,
                                             <link linkend="gboolean">gboolean</link> includeempty);
<link linkend="gboolean">gboolean</link>    <link linkend="lj-entry-to-rfc822-file">lj_entry_to_rfc822_file</link>         (<link linkend="LJEntry">LJEntry</link> *entry,
                                             const char *filename,
                                             <link linkend="gboolean">gboolean</link> includeempty,
                                             <link linkend="GError">GError</link> **err);
<link linkend="gboolean">gboolean</link>    <link linkend="lj-entry-edit-with-usereditor">lj_entry_edit_with_usereditor</link>   (<link linkend="LJEntry">LJEntry</link> *entry,
                                             const char *basepath,
                                             <link linkend="GError">GError</link> **err);
<link linkend="LJEntry">LJEntry</link>**   <link linkend="lj-entries-new-from-result">lj_entries_new_from_result</link>      (<link linkend="LJResult">LJResult</link> *result,
                                             int count,
                                             <link linkend="GSList">GSList</link> **warnings);
</synopsis>
</refsynopsisdiv>







<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="LJSecurityType">enum LJSecurityType</title>
<programlisting>typedef enum {
	LJ_SECURITY_PUBLIC = 0,
	LJ_SECURITY_FRIENDS,
	LJ_SECURITY_PRIVATE,
	LJ_SECURITY_CUSTOM
} LJSecurityType;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJ-SECURITY-ALLOWMASK-FRIENDS-CAPS">LJ_SECURITY_ALLOWMASK_FRIENDS</title>
<programlisting>#define LJ_SECURITY_ALLOWMASK_FRIENDS 1
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-security-from-strings">lj_security_from_strings ()</title>
<programlisting>void        lj_security_from_strings        (<link linkend="LJSecurity">LJSecurity</link> *security,
                                             const char *sectext,
                                             const char *allowmask);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>security</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>sectext</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>allowmask</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-security-to-strings">lj_security_to_strings ()</title>
<programlisting>void        lj_security_to_strings          (<link linkend="LJSecurity">LJSecurity</link> *security,
                                             char **sectext,
                                             char **allowmask);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>security</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>sectext</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>allowmask</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-security-append-to-request">lj_security_append_to_request ()</title>
<programlisting>void        lj_security_append_to_request   (<link linkend="LJSecurity">LJSecurity</link> *security,
                                             <link linkend="LJRequest">LJRequest</link> *request);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>security</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>request</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="LJCommentsType">enum LJCommentsType</title>
<programlisting>typedef enum {
	LJ_COMMENTS_DEFAULT,
	LJ_COMMENTS_NOEMAIL,
	LJ_COMMENTS_DISABLE
} LJCommentsType;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJEntryFileType">enum LJEntryFileType</title>
<programlisting>typedef enum {
	LJ_ENTRY_FILE_AUTODETECT,
	LJ_ENTRY_FILE_XML,
	LJ_ENTRY_FILE_RFC822,
	LJ_ENTRY_FILE_PLAIN
} LJEntryFileType;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-entry-new">lj_entry_new ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>*    lj_entry_new                    (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-new-from-file">lj_entry_new_from_file ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>*    lj_entry_new_from_file          (<link linkend="FILE-CAPS">FILE</link> *f,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> type,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> *typeret,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>typeret</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-new-from-filename">lj_entry_new_from_filename ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>*    lj_entry_new_from_filename      (const char *filename,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> type,
                                             <link linkend="LJEntryFileType">LJEntryFileType</link> *typeret,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>typeret</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-new-from-xml-node">lj_entry_new_from_xml_node ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>*    lj_entry_new_from_xml_node      (<link linkend="xmlDocPtr">xmlDocPtr</link> doc,
                                             <link linkend="xmlNodePtr">xmlNodePtr</link> node);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>doc</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>node</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-new-single-from-result">lj_entry_new_single_from_result ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>*    lj_entry_new_single_from_result (<link linkend="LJResult">LJResult</link> *result,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>result</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-copy">lj_entry_copy ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>*    lj_entry_copy                   (<link linkend="LJEntry">LJEntry</link> *e);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>e</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-free">lj_entry_free ()</title>
<programlisting>void        lj_entry_free                   (<link linkend="LJEntry">LJEntry</link> *e);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>e</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-make-summary">lj_entry_make_summary ()</title>
<programlisting>char*       lj_entry_make_summary           (<link linkend="LJEntry">LJEntry</link> *entry);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-get-summary">lj_get_summary ()</title>
<programlisting>char*       lj_get_summary                  (char *subject,
                                             char *event);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>subject</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>event</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-set-request-fields">lj_entry_set_request_fields ()</title>
<programlisting>void        lj_entry_set_request_fields     (<link linkend="LJEntry">LJEntry</link> *entry,
                                             <link linkend="LJRequest">LJRequest</link> *request);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>request</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-to-xml-node">lj_entry_to_xml_node ()</title>
<programlisting><link linkend="xmlNodePtr">xmlNodePtr</link>  lj_entry_to_xml_node            (<link linkend="LJEntry">LJEntry</link> *entry,
                                             <link linkend="xmlDocPtr">xmlDocPtr</link> doc);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>doc</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-to-xml-file">lj_entry_to_xml_file ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    lj_entry_to_xml_file            (<link linkend="LJEntry">LJEntry</link> *entry,
                                             const char *filename,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-to-rfc822">lj_entry_to_rfc822 ()</title>
<programlisting><link linkend="GString">GString</link>*    lj_entry_to_rfc822              (<link linkend="LJEntry">LJEntry</link> *entry,
                                             <link linkend="gboolean">gboolean</link> includeempty);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>includeempty</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-to-rfc822-file">lj_entry_to_rfc822_file ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    lj_entry_to_rfc822_file         (<link linkend="LJEntry">LJEntry</link> *entry,
                                             const char *filename,
                                             <link linkend="gboolean">gboolean</link> includeempty,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>includeempty</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entry-edit-with-usereditor">lj_entry_edit_with_usereditor ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    lj_entry_edit_with_usereditor   (<link linkend="LJEntry">LJEntry</link> *entry,
                                             const char *basepath,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>entry</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>basepath</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-entries-new-from-result">lj_entries_new_from_result ()</title>
<programlisting><link linkend="LJEntry">LJEntry</link>**   lj_entries_new_from_result      (<link linkend="LJResult">LJResult</link> *result,
                                             int count,
                                             <link linkend="GSList">GSList</link> **warnings);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>result</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>count</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>warnings</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
