<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="./robodoc.css" type="text/css" />
<title>./src/libmagic.ads</title>
<!-- Source: ./src/libmagic.ads -->
<!-- Generated with ROBODoc Version 4.99.43 (Feb  8 2020) -->
</head>
<body>
<div id="logo">
<a name="robo_top_of_doc">Hunter v1.6 code documentation</a>
</div> <!-- logo -->
<div id="navigation">
<a class="menuitem" href="./toc_index.html#top">Table of Contents</a>
<a class="menuitem" href="./sources.html#top">Source files</a>
<a class="menuitem" href="./index.html#top">Index</a>
<a class="menuitem" href="./robo_tasks.html#top">Tasks</a>
<a class="menuitem" href="./robo_constants.html#top">Constants</a>
<a class="menuitem" href="./robo_exceptions.html#top">Exceptions</a>
<a class="menuitem" href="./robo_subprograms.html#top">Subprograms</a>
<a class="menuitem" href="./robo_packages.html#top">Packages</a>
<a class="menuitem" href="./robo_commands.html#top">Commands</a>
<a class="menuitem" href="./robo_records.html#top">Records</a>
<a class="menuitem" href="./robo_types.html#top">Types</a>
<a class="menuitem" href="./robo_variables.html#top">Variables</a>
</div> <!-- navigation -->
<div id="content">
<h3>TABLE OF CONTENTS</h3>
<ul>
<li>1. <a href="#robo17">Libmagic/LibMagic</a></li>
<ul>
<li>1.1. <a href="./libmagic_adb.html#robo101">LibMagic/LibMagic.Initialized</a></li>
<li>1.2. <a href="./libmagic_adb.html#robo102">LibMagic/LibMagic.Magic_Data</a></li>
<li>1.3. <a href="./libmagic_adb.html#robo205">LibMagic/LibMagic.Get_Magic_Instance</a></li>
<li>1.4. <a href="./libmagic_adb.html#robo206">LibMagic/LibMagic.Is_Initialized</a></li>
<li>1.5. <a href="#robo207">LibMagic/LibMagic.Magic_Close</a></li>
<li>1.6. <a href="#robo208">LibMagic/LibMagic.Magic_File</a></li>
<li>1.7. <a href="#robo209">LibMagic/LibMagic.Magic_Open</a></li>
</ul>
</ul>
<hr />
<a name="Libmagic2fLibMagic"></a>
<a name="robo17"></a><h2>Libmagic/LibMagic [ Packages ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="./robo_packages.html#robo_top_of_doc">Packages</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Small Ada binding to the libmagic library
</pre>
<p class="item_name">SOURCE</p>
<pre class="source"><span class="keyword">package</span> <strong>LibMagic</strong> <span class="keyword">is</span>
</pre>

<hr />
<a name="LibMagic2fLibMagic2eMagic5fClose"></a>
<a name="robo207"></a><h2>LibMagic/LibMagic.Magic_Close [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo17">LibMagic</a> ] [ <a href="./robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Close and release all magic data
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">procedure</span> Magic_Close<span class="sign">;</span>
</pre>

<hr />
<a name="LibMagic2fLibMagic2eMagic5fFile"></a>
<a name="robo208"></a><h2>LibMagic/LibMagic.Magic_File [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo17">LibMagic</a> ] [ <a href="./robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Get mime type of selected file if libmagic is not initialized, it
 fallback to the xdg-mime program.
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">function</span> Magic_File<span class="sign">(</span>Name<span class="sign">:</span> String<span class="sign">)</span> <span class="keyword">return</span> String<span class="sign">;</span>
</pre>
<p class="item_name">PARAMETERS</p>
<pre> Name - Full path to the file which mime type will be check
</pre>
<p class="item_name">RESULT</p>
<pre> MIME type of selected file or "unknown" if libmagic is not initialized
 and xdg-mime program don't exists.
</pre>

<hr />
<a name="LibMagic2fLibMagic2eMagic5fOpen"></a>
<a name="robo209"></a><h2>LibMagic/LibMagic.Magic_Open [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo17">LibMagic</a> ] [ <a href="./robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Initialize magic data
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">procedure</span> Magic_Open<span class="sign">;</span>
</pre>

</div> <!-- content -->
<div id="footer">
<p>Generated from ./src/libmagic.ads with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sun Aug 08 2021 07:39:39
</p>
</div> <!-- footer -->
</body>
</html>

