Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 9f39b42a4a9bb5f46373ffcca30c81df > files > 24

libzvbi0-devel-0.2.3-1mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Internal export module interface</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center>
<hr><h1>Internal export module interface<br>
<small>
[<a class="el" href="group__Export.html">Exporting formatted Teletext and Closed Caption pages</a>]</small>
</h1><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><a class="el" href="structvbi__export.html">vbi_export</a></td></tr>
<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><a class="el" href="structvbi__export__class.html">vbi_export_class</a></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a8">VBI_OPTION_BOOL_INITIALIZER</a>(key_, label_, def_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a9">VBI_OPTION_INT_RANGE_INITIALIZER</a>(key_, label_, def_, min_,	max_,	step_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a10">VBI_OPTION_INT_MENU_INITIALIZER</a>(key_, label_, def_,menu_, entries_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a11">VBI_OPTION_REAL_RANGE_INITIALIZER</a>(key_, label_, def_, min_,	max_, step_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a12">VBI_OPTION_REAL_MENU_INITIALIZER</a>(key_, label_, def_,menu_, entries_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a13">VBI_OPTION_STRING_INITIALIZER</a>(key_, label_, def_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a14">VBI_OPTION_STRING_MENU_INITIALIZER</a>(key_, label_, def_,menu_, entries_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a15">VBI_OPTION_MENU_INITIALIZER</a>(key_, label_, def_, menu_,entries_, tip_)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a16">VBI_AUTOREG_EXPORT_MODULE</a>(name)</td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a0">vbi_register_export_module</a> (<a class="el" href="structvbi__export__class.html">vbi_export_class</a> *new_module)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a1">vbi_export_write_error</a> (<a class="el" href="structvbi__export.html">vbi_export</a> *export)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a2">vbi_export_unknown_option</a> (<a class="el" href="structvbi__export.html">vbi_export</a> *export, const char *keyword)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a3">vbi_export_invalid_option</a> (<a class="el" href="structvbi__export.html">vbi_export</a> *export, const char *keyword,...)</td></tr>
<tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a4">vbi_export_strdup</a> (<a class="el" href="structvbi__export.html">vbi_export</a> *export, char **d, const char *s)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a5">vbi_export_error_printf</a> (<a class="el" href="structvbi__export.html">vbi_export</a> *export, const char *templ,...)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="group__Exmod.html#a6">vbi_ucs2be</a> (void)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is the private interface between the public libzvbi export functions and export modules. libzvbi client applications don't use this.
<p>
Export modules <code>#include</code> <code>"export.h"</code> to get these definitions. See example module exp-templ.c. <hr><h2>Define Documentation</h2>
<a name="a8" doxytag="export.h::VBI_OPTION_BOOL_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_BOOL_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a25">VBI_OPTION_BOOL</a>, key_, label_, VBI_OPTION_BOUNDS_INITIALIZER_(        \
  .num, def_, 0, 1, 1), { .num = NULL }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like this:
<p>
<div class="fragment"><pre> <a class="code" href="structvbi__option__info.html">vbi_option_info</a> myinfo = <a class="code" href="group__Exmod.html#a8">VBI_OPTION_BOOL_INITIALIZER</a>
   (<span class="stringliteral">"mute"</span>, N_(<span class="stringliteral">"Switch sound on/off"</span>), FALSE, N_(<span class="stringliteral">"I am a tooltip"</span>));
</pre></div>
<p>
<a class="el" href="io_8h.html#a10">N_()</a> marks the string for i18n, see info gettext for details.     </td>
  </tr>
</table>
<a name="a9" doxytag="export.h::VBI_OPTION_INT_RANGE_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_INT_RANGE_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>min_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>max_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>step_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a26">VBI_OPTION_INT</a>, key_, label_,                 \
  VBI_OPTION_BOUNDS_INITIALIZER_(.num, def_, min_, max_, step_),        \
  { .num = NULL }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like this:
<p>
<div class="fragment"><pre> <a class="code" href="structvbi__option__info.html">vbi_option_info</a> myinfo = <a class="code" href="group__Exmod.html#a9">VBI_OPTION_INT_RANGE_INITIALIZER</a>
   (<span class="stringliteral">"sampling"</span>, N_(<span class="stringliteral">"Sampling rate"</span>), 44100, 8000, 48000, 100, NULL);
</pre></div>
<p>
Here we have no tooltip (<code>NULL)</code>.     </td>
  </tr>
</table>
<a name="a10" doxytag="export.h::VBI_OPTION_INT_MENU_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_INT_MENU_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>menu_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>entries_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a26">VBI_OPTION_INT</a>, key_, label_,         \
  VBI_OPTION_BOUNDS_INITIALIZER_(.num, def_, 0, (entries_) - 1, 1),     \
  { .num = menu_ }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like this:
<p>
<div class="fragment"><pre> <span class="keywordtype">int</span> mymenu[] = { 29, 30, 31 };

 <a class="code" href="structvbi__option__info.html">vbi_option_info</a> myinfo = <a class="code" href="group__Exmod.html#a10">VBI_OPTION_INT_MENU_INITIALIZER</a>
   (<span class="stringliteral">"days"</span>, NULL, 1, mymenu, 3, NULL);
</pre></div>
<p>
No label and tooltip (<code>NULL)</code>, i. e. this option is not to be listed in the user interface. Default is entry 1 ("30") of 3 entries.     </td>
  </tr>
</table>
<a name="a11" doxytag="export.h::VBI_OPTION_REAL_RANGE_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_REAL_RANGE_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>min_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>max_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>step_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a27">VBI_OPTION_REAL</a>, key_, label_,                        \
  VBI_OPTION_BOUNDS_INITIALIZER_(.dbl, def_, min_, max_, step_),        \
  { .dbl = NULL }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like <a class="el" href="group__Exmod.html#a9">VBI_OPTION_INT_RANGE_INITIALIZER()</a>, just with doubles but ints.     </td>
  </tr>
</table>
<a name="a12" doxytag="export.h::VBI_OPTION_REAL_MENU_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_REAL_MENU_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>menu_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>entries_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a27">VBI_OPTION_REAL</a>, key_, label_,                \
  VBI_OPTION_BOUNDS_INITIALIZER_(.num, def_, 0, (entries_) - 1, 1),     \
  { .dbl = menu_ }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like <a class="el" href="group__Exmod.html#a10">VBI_OPTION_INT_MENU_INITIALIZER()</a>, just with an array of doubles but ints.     </td>
  </tr>
</table>
<a name="a13" doxytag="export.h::VBI_OPTION_STRING_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_STRING_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a28">VBI_OPTION_STRING</a>, key_, label_, VBI_OPTION_BOUNDS_INITIALIZER_(      \
  .str, def_, NULL, NULL, NULL), { .str = NULL }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like this:
<p>
<div class="fragment"><pre> <a class="code" href="structvbi__option__info.html">vbi_option_info</a> myinfo = <a class="code" href="group__Exmod.html#a13">VBI_OPTION_STRING_INITIALIZER</a>
   (<span class="stringliteral">"comment"</span>, N_(<span class="stringliteral">"Comment"</span>), <span class="stringliteral">"bububaba"</span>, <span class="stringliteral">"Please enter a string"</span>);
</pre></div>     </td>
  </tr>
</table>
<a name="a14" doxytag="export.h::VBI_OPTION_STRING_MENU_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_STRING_MENU_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>menu_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>entries_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a28">VBI_OPTION_STRING</a>, key_, label_,              \
  VBI_OPTION_BOUNDS_INITIALIZER_(.str, def_, 0, (entries_) - 1, 1),     \
  { .str = menu_ }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like this:
<p>
<div class="fragment"><pre> <span class="keywordtype">char</span> *mymenu[] = { <span class="stringliteral">"txt"</span>, <span class="stringliteral">"html"</span> };

 <a class="code" href="structvbi__option__info.html">vbi_option_info</a> myinfo = <a class="code" href="group__Exmod.html#a14">VBI_OPTION_STRING_MENU_INITIALIZER</a>
   (<span class="stringliteral">"extension"</span>, <span class="stringliteral">"Ext"</span>, 0, mymenu, 2, N_(<span class="stringliteral">"Select an extension"</span>));
</pre></div>
<p>
Remember this is like <a class="el" href="group__Exmod.html#a13">VBI_OPTION_STRING_INITIALIZER()</a> in the sense that the vbi client can pass any string as option value, not just those proposed in the menu. In contrast a plain menu option as with <a class="el" href="group__Exmod.html#a15">VBI_OPTION_MENU_INITIALIZER()</a> expects menu indices as input.     </td>
  </tr>
</table>
<a name="a15" doxytag="export.h::VBI_OPTION_MENU_INITIALIZER"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_OPTION_MENU_INITIALIZER</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">key_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>label_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>def_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>menu_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>entries_,         <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>tip_&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><div class="fragment"><pre>{ <a class="code" href="group__Export.html#a16a29">VBI_OPTION_MENU</a>, key_, label_,                        \
  VBI_OPTION_BOUNDS_INITIALIZER_(.num, def_, 0, (entries_) - 1, 1),     \
  { .str = (<span class="keywordtype">char</span> **)(menu_) }, tip_ }</pre></div>Helper macro for export modules to build option lists. Use like this:
<p>
<div class="fragment"><pre> <span class="keywordtype">char</span> *mymenu[] = { N_(<span class="stringliteral">"Monday"</span>), N_(<span class="stringliteral">"Tuesday"</span>) };

 <a class="code" href="structvbi__option__info.html">vbi_option_info</a> myinfo = <a class="code" href="group__Exmod.html#a15">VBI_OPTION_MENU_INITIALIZER</a>
   (<span class="stringliteral">"weekday"</span>, <span class="stringliteral">"Weekday"</span>, 0, mymenu, 2, N_(<span class="stringliteral">"Select a weekday"</span>));
</pre></div>     </td>
  </tr>
</table>
<a name="a16" doxytag="export.h::VBI_AUTOREG_EXPORT_MODULE"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define VBI_AUTOREG_EXPORT_MODULE</td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">name&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Doesn't work, sigh. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="exp-templ_8c-example.html#a13">exp-templ.c</a>.</dl>    </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a name="a0" doxytag="export.c::vbi_register_export_module"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void vbi_register_export_module </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structvbi__export__class.html">vbi_export_class</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>new_module</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>new_module</em>&nbsp;</td><td>
Static pointer to initialized <a class="el" href="structvbi__export__class.html">vbi_export_class</a> structure.</td></tr>
</table>
</dl>Registers a new export module.     </td>
  </tr>
</table>
<a name="a1" doxytag="export.c::vbi_export_write_error"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void vbi_export_write_error </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structvbi__export.html">vbi_export</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>export</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>export</em>&nbsp;</td><td>
Pointer to a initialized <a class="el" href="structvbi__export.html">vbi_export</a> object.</td></tr>
</table>
</dl>Similar to vbi_export_error_printf this function stores an error description in the <em>export</em> object, after examining the errno variable and choosing an appropriate message. Only export modules call this function.     </td>
  </tr>
</table>
<a name="a2" doxytag="export.c::vbi_export_unknown_option"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void vbi_export_unknown_option </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structvbi__export.html">vbi_export</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>export</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>keyword</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>export</em>&nbsp;</td><td>
Pointer to a initialized <a class="el" href="structvbi__export.html">vbi_export</a> object. </td></tr>
<tr><td valign=top><em>keyword</em>&nbsp;</td><td>
Name of the unknown option.</td></tr>
</table>
</dl>Store an error description in the <em>export</em> object. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="exp-templ_8c-example.html#a7">exp-templ.c</a>.</dl>    </td>
  </tr>
</table>
<a name="a3" doxytag="export.c::vbi_export_invalid_option"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void vbi_export_invalid_option </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structvbi__export.html">vbi_export</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>export</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>keyword</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>export</em>&nbsp;</td><td>
Pointer to a initialized <a class="el" href="structvbi__export.html">vbi_export</a> object. </td></tr>
<tr><td valign=top><em>keyword</em>&nbsp;</td><td>
Name of the unknown option. </td></tr>
<tr><td valign=top><em>...</em>&nbsp;</td><td>
Invalid value, type depending on the option.</td></tr>
</table>
</dl>Store an error description in the <em>export</em> object. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="exp-templ_8c-example.html#a8">exp-templ.c</a>.</dl>    </td>
  </tr>
</table>
<a name="a4" doxytag="export.c::vbi_export_strdup"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> char* vbi_export_strdup </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structvbi__export.html">vbi_export</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>export</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>d</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>s</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>export</em>&nbsp;</td><td>
Pointer to a initialized <a class="el" href="structvbi__export.html">vbi_export</a> object. </td></tr>
<tr><td valign=top><em>d</em>&nbsp;</td><td>
If non-zero, store pointer to allocated string here. When *d is non-zero, free(*d) the old string first. </td></tr>
<tr><td valign=top><em>s</em>&nbsp;</td><td>
String to be duplicated.</td></tr>
</table>
</dl>Helper function for export modules.
<p>
Same as the libc strdup(), except for <em>d</em> argument and setting the <em>export</em> error string on failure.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
 <code>NULL</code> on failure, pointer to malloc()ed string otherwise. </dl><dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="exp-templ_8c-example.html#a6">exp-templ.c</a>.</dl>    </td>
  </tr>
</table>
<a name="a5" doxytag="export.c::vbi_export_error_printf"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void vbi_export_error_printf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structvbi__export.html">vbi_export</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>export</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>templ</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>export</em>&nbsp;</td><td>
Pointer to a initialized <a class="el" href="structvbi__export.html">vbi_export</a> object. </td></tr>
<tr><td valign=top><em>templ</em>&nbsp;</td><td>
See printf(). </td></tr>
<tr><td valign=top><em>...</em>&nbsp;</td><td>
See printf().</td></tr>
</table>
</dl>Store an error description in the <em>export</em> object. Including the current error description (to append or prepend) is safe.     </td>
  </tr>
</table>
<a name="a6" doxytag="export.c::vbi_ucs2be"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int vbi_ucs2be </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Helper function for export modules, since iconv seems undecided what it really wants (not every iconv supports UCS-2LE/BE).
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
 1 if iconv "UCS-2" is BE on this machine, 0 if LE, -1 if unknown. </dl>    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Thu Jan 2 16:03:41 2003 for ZVBI Library by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>