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

<refnamediv>
<refname>consolecommand</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



enum        <link linkend="LJConsoleLineType">LJConsoleLineType</link>;
typedef     <link linkend="LJConsoleLine">LJConsoleLine</link>;
typedef     <link linkend="LJConsoleCommand">LJConsoleCommand</link>;
<link linkend="LJConsoleCommand">LJConsoleCommand</link>* <link linkend="lj-consolecommand-new">lj_consolecommand_new</link>     (<link linkend="LJUser">LJUser</link> *user,
                                             const char *command);
void        <link linkend="lj-consolecommand-free">lj_consolecommand_free</link>          (<link linkend="LJConsoleCommand">LJConsoleCommand</link> *consolecommand);
</synopsis>
</refsynopsisdiv>







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

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="LJConsoleLineType">enum LJConsoleLineType</title>
<programlisting>typedef enum {
	LJ_CONSOLE_LINE_TYPE_UNKNOWN,
	LJ_CONSOLE_LINE_TYPE_INFO,
	LJ_CONSOLE_LINE_TYPE_ERROR
} LJConsoleLineType;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJConsoleLine">LJConsoleLine</title>
<programlisting>typedef struct {
	LJConsoleLineType type;
	char *text;
} LJConsoleLine;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJConsoleCommand">LJConsoleCommand</title>
<programlisting>typedef struct {
	LJVerb verb;
	int linecount;
	LJConsoleLine *lines;
} LJConsoleCommand;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-consolecommand-new">lj_consolecommand_new ()</title>
<programlisting><link linkend="LJConsoleCommand">LJConsoleCommand</link>* lj_consolecommand_new     (<link linkend="LJUser">LJUser</link> *user,
                                             const char *command);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>user</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>command</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-consolecommand-free">lj_consolecommand_free ()</title>
<programlisting>void        lj_consolecommand_free          (<link linkend="LJConsoleCommand">LJConsoleCommand</link> *consolecommand);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
