<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.11"/> <title>libg722_1: lt_error.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libg722_1  <span id="projectnumber">0.1.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('lt__error_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">lt_error.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* lt_error.h -- error propagation interface</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"></span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright (C) 1999-2001, 2004, 2007, 2011-2015 Free Software</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Foundation, Inc.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> Written by Thomas Tanner, 1999</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> NOTE: The canonical source of this file is maintained with the</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> GNU Libtool package. Report bugs to bug-libtool@gnu.org.</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">GNU Libltdl is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">modify it under the terms of the GNU Lesser General Public</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">License as published by the Free Software Foundation; either</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">version 2 of the License, or (at your option) any later version.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">As a special exception to the GNU Lesser General Public License,</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">if you distribute this file as part of a program or library that</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">is built using GNU Libtool, you may include this file under the</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">same distribution terms that you use for the rest of that program.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">GNU Libltdl is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">GNU Lesser General Public License for more details.</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">You should have received a copy of the GNU Lesser General Public</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">License along with GNU Libltdl; see the file COPYING.LIB. If not, a</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">or obtained by writing to the Free Software Foundation, Inc.,</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">*/</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">/* Only include this header file once. */</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#if !defined LT_ERROR_H</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#define LT_ERROR_H 1</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <libltdl/lt_system.h></span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> LT_BEGIN_C_DECLS</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/* Defining error strings alongside their symbolic names in a macro in</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> this way allows us to expand the macro in different contexts with</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> confidence that the enumeration of symbolic names will map correctly</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> onto the table of error strings. \0 is appended to the strings to</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> expilicitely initialize the string terminator. */</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#define lt_dlerror_table \</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"> LT_ERROR(UNKNOWN, "unknown error\0") \</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"> LT_ERROR(DLOPEN_NOT_SUPPORTED, "dlopen support not available\0") \</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor"> LT_ERROR(INVALID_LOADER, "invalid loader\0") \</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor"> LT_ERROR(INIT_LOADER, "loader initialization failed\0") \</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor"> LT_ERROR(REMOVE_LOADER, "loader removal failed\0") \</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor"> LT_ERROR(FILE_NOT_FOUND, "file not found\0") \</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor"> LT_ERROR(DEPLIB_NOT_FOUND, "dependency library not found\0") \</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor"> LT_ERROR(NO_SYMBOLS, "no symbols defined\0") \</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"> LT_ERROR(CANNOT_OPEN, "can't open the module\0") \</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor"> LT_ERROR(CANNOT_CLOSE, "can't close the module\0") \</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"> LT_ERROR(SYMBOL_NOT_FOUND, "symbol not found\0") \</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor"> LT_ERROR(NO_MEMORY, "not enough memory\0") \</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"> LT_ERROR(INVALID_HANDLE, "invalid module handle\0") \</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor"> LT_ERROR(BUFFER_OVERFLOW, "internal buffer overflow\0") \</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"> LT_ERROR(INVALID_ERRORCODE, "invalid errorcode\0") \</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor"> LT_ERROR(SHUTDOWN, "library already shutdown\0") \</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor"> LT_ERROR(CLOSE_RESIDENT_MODULE, "can't close resident module\0") \</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor"> LT_ERROR(INVALID_MUTEX_ARGS, "internal error (code withdrawn)\0")\</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor"> LT_ERROR(INVALID_POSITION, "invalid search path insert position\0")\</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor"> LT_ERROR(CONFLICTING_FLAGS, "symbol visibility can be global or local\0")</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment">/* Enumerate the symbolic error names. */</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#define LT_ERROR(name, diagnostic) LT_CONC(LT_ERROR_, name),</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  lt_dlerror_table</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#undef LT_ERROR</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  LT_ERROR_MAX</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> };</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment">/* Should be max of the error string lengths above (plus one for C++) */</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#define LT_ERROR_LEN_MAX (41)</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment">/* These functions are only useful from inside custom module loaders. */</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> LT_SCOPE <span class="keywordtype">int</span> lt_dladderror (<span class="keyword">const</span> <span class="keywordtype">char</span> *diagnostic);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> LT_SCOPE <span class="keywordtype">int</span> lt_dlseterror (<span class="keywordtype">int</span> errorcode);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> LT_END_C_DECLS</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#endif </span><span class="comment">/*!defined LT_ERROR_H*/</span><span class="preprocessor"></span></div></div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_7594949b0bc11ccff0467624b372eab6.html">libltdl</a></li><li class="navelem"><a class="el" href="dir_2c696f629122c74b008f0c0b216da9f3.html">libltdl</a></li><li class="navelem"><b>lt_error.h</b></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li> </ul> </div> </body> </html>