<!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>meta.c File Reference</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> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> <hr><h1>meta.c File Reference</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 </td><td valign=bottom><a class="el" href="struct__wmfWriteFileInfo.html">_wmfWriteFileInfo</a></td></tr> <tr><td colspan=2><br><h2>Typedefs</h2></td></tr> <tr><td nowrap align=right valign=top>typedef enum <a class="el" href="meta_8c.html#a19">_wmf_write_t</a> </td><td valign=bottom><a class="el" href="meta_8c.html#a0">wmf_write_t</a></td></tr> <tr><td nowrap align=right valign=top>typedef <a class="el" href="struct__wmfWriteFileInfo.html">_wmfWriteFileInfo</a> </td><td valign=bottom><a class="el" href="meta_8c.html#a1">wmfWriteFileInfo</a></td></tr> <tr><td colspan=2><br><h2>Enumerations</h2></td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="meta_8c.html#a19">_wmf_write_t</a> { <br> <a class="el" href="meta_8c.html#a19a2">wmf_W_WMF</a> = 0, <br> <a class="el" href="meta_8c.html#a19a3">wmf_W_XML</a> <br> }</td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top>U16 </td><td valign=bottom><a class="el" href="meta_8c.html#a7">wmf_read_16</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API)</td></tr> <tr><td nowrap align=right valign=top>U32 </td><td valign=bottom><a class="el" href="meta_8c.html#a8">wmf_read_32</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, U16 *u16a, U16 *u16b)</td></tr> <tr><td nowrap align=right valign=top>U16 </td><td valign=bottom><a class="el" href="meta_8c.html#a9">wmf_aldus_checksum</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a5">wmf_error_t</a> </td><td valign=bottom><a class="el" href="meta_8c.html#a10">wmf_header_read</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="meta_8c.html#a11">wmf_write</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, unsigned long Size, unsigned int Function, const char *name, char **atts, const unsigned char *buffer, unsigned long length)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="meta_8c.html#a12">wmf_write_begin</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, const char *filename)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="meta_8c.html#a13">wmf_write_end</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="meta_8c.html#a14">wmf_attr_new</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="types_8h.html#a25">wmfAttributes</a> *list)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="meta_8c.html#a15">wmf_attr_clear</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="types_8h.html#a25">wmfAttributes</a> *list)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="meta_8c.html#a16">wmf_attr_free</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="types_8h.html#a25">wmfAttributes</a> *list)</td></tr> <tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="meta_8c.html#a17">wmf_attr_add</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="types_8h.html#a25">wmfAttributes</a> *list, const char *name, const char *value)</td></tr> <tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="meta_8c.html#a18">wmf_attr_query</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="types_8h.html#a25">wmfAttributes</a> *list, const char *name)</td></tr> </table> <hr><h2>Typedef Documentation</h2> <a name="a0" doxytag="meta.c::wmf_write_t"></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"> typedef enum <a class="el" href="meta_8c.html#a19">_wmf_write_t</a> wmf_write_t </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="meta.c::wmfWriteFileInfo"></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"> typedef struct <a class="el" href="struct__wmfWriteFileInfo.html">_wmfWriteFileInfo</a> wmfWriteFileInfo </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Enumeration Type Documentation</h2> <a name="a19" doxytag="meta.c::_wmf_write_t"></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"> enum _wmf_write_t </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt><b>Enumeration values: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em><a name="a19a2" doxytag="wmf_W_WMF"></a><em>wmf_W_WMF</em></em> </td><td> </td></tr> <tr><td valign=top><em><a name="a19a3" doxytag="wmf_W_XML"></a><em>wmf_W_XML</em></em> </td><td> </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Function Documentation</h2> <a name="a9" doxytag="meta.c::wmf_aldus_checksum"></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"> U16 wmf_aldus_checksum </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname1" valign="top" nowrap> <em>API</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Compute the Aldus checksum of the metafile's header.<dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>API</em> </td><td> the API handle</td></tr> </table> </dl>(Must read the header first, either via <a class="el" href="api_8h.html#a27">wmf_scan()</a> or by calling <a class="el" href="meta_8c.html#a10">wmf_header_read()</a> directly.) <p> <dl compact><dt><b>Returns: </b></dt><dd> Returns the checksum. </dl> </td> </tr> </table> <a name="a17" doxytag="meta.c::wmf_attr_add"></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"> const char* wmf_attr_add </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="types_8h.html#a25">wmfAttributes</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Add an name&value to a wmfAttributes structure; returns ptr to value-in-list </td> </tr> </table> <a name="a15" doxytag="meta.c::wmf_attr_clear"></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 wmf_attr_clear </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="types_8h.html#a25">wmfAttributes</a> * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Clear/Empty a wmfAttributes structure </td> </tr> </table> <a name="a16" doxytag="meta.c::wmf_attr_free"></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 wmf_attr_free </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="types_8h.html#a25">wmfAttributes</a> * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Free memory associated with a wmfAttributes structure </td> </tr> </table> <a name="a14" doxytag="meta.c::wmf_attr_new"></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 wmf_attr_new </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="types_8h.html#a25">wmfAttributes</a> * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Initialize a wmfAttributes structure </td> </tr> </table> <a name="a18" doxytag="meta.c::wmf_attr_query"></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"> const char* wmf_attr_query </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="types_8h.html#a25">wmfAttributes</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Return value of name in a wmfAttributes structure; returns 0 if name not found </td> </tr> </table> <a name="a10" doxytag="meta.c::wmf_header_read"></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"> <a class="el" href="types_8h.html#a5">wmf_error_t</a> wmf_header_read </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname1" valign="top" nowrap> <em>API</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Read the metafile's header.<dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>API</em> </td><td> the API handle</td></tr> </table> </dl>(Must read the header first, either via <a class="el" href="api_8h.html#a27">wmf_scan()</a> or by calling <a class="el" href="meta_8c.html#a10">wmf_header_read()</a> directly.) <p> <dl compact><dt><b>Returns: </b></dt><dd> Returns the library error state (<b>wmf_E_None</b> on success). Possible library error states of <b>wmf_E_Glitch</b>, <b>wmf_E_BadFormat</b> (bad header), <b>wmf_E_BadFile</b> (no open input stream) and <b>wmf_E_EOF</b> (premature end-of-file). </dl> </td> </tr> </table> <a name="a7" doxytag="meta.c::wmf_read_16"></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"> U16 wmf_read_16 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Reads a two-byte sequence from the current metafile, returns U16 </td> </tr> </table> <a name="a8" doxytag="meta.c::wmf_read_32"></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"> U32 wmf_read_32 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>U16 * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>U16 * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Reads a four-byte sequence from the current metafile, returns U32 </td> </tr> </table> <a name="a11" doxytag="meta.c::wmf_write"></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 wmf_write </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned </td> <td class="mdname" nowrap> <em>long</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned </td> <td class="mdname" nowrap> <em>int</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>char ** </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const unsigned char * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned </td> <td class="mdname" nowrap> <em>long</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Writes to --wmf-write file (which may be WMF or home-made wmfxml) </td> </tr> </table> <a name="a12" doxytag="meta.c::wmf_write_begin"></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 wmf_write_begin </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Open --wmf-write file (which may be WMF or home-made wmfxml) </td> </tr> </table> <a name="a13" doxytag="meta.c::wmf_write_end"></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 wmf_write_end </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Close --wmf-write file (which may be WMF or home-made wmfxml) </td> </tr> </table> <hr><address style="align: right;"><small>Generated on Tue Dec 10 19:53:50 2002 for libwmf 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>