<!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>AlsaPlayer: interface_plugin.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.3 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</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></div> <h1>interface_plugin.h</h1><a href="interface__plugin_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* interface_plugin.h</span> 00002 <span class="comment"> * Copyright (C) 2001-2002 Andy Lo A Foe <andy@alsaplayer.org></span> 00003 <span class="comment"> *</span> 00004 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span> 00005 <span class="comment"> * it under the terms of the GNU General Public License as published by</span> 00006 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span> 00007 <span class="comment"> * (at your option) any later version.</span> 00008 <span class="comment"> *</span> 00009 <span class="comment"> * This program is distributed in the hope that it will be useful,</span> 00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> 00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> 00012 <span class="comment"> * GNU General Public License for more details.</span> 00013 <span class="comment"> *</span> 00014 <span class="comment"> * You should have received a copy of the GNU General Public License</span> 00015 <span class="comment"> * along with this program; if not, write to the Free Software</span> 00016 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span> 00017 <span class="comment"> *</span> 00018 <span class="comment"> *</span> 00019 <span class="comment"> *</span> 00020 <span class="comment"> * $Id: interface_plugin.h,v 1.2 2002/04/10 15:30:04 adnans Exp $</span> 00021 <span class="comment"> * </span> 00022 <span class="comment"> */</span> 00023 00024 <span class="preprocessor">#ifndef __interface_plugin_h__</span> 00025 <span class="preprocessor"></span><span class="preprocessor">#define __interface_plugin_h__</span> 00026 <span class="preprocessor"></span> 00027 <span class="preprocessor">#include "CorePlayer.h"</span> 00028 <span class="preprocessor">#include "Playlist.h"</span> 00029 00030 <span class="comment">/*</span> 00031 <span class="comment"> * Format of version number is 0x1000 + version</span> 00032 <span class="comment"> * So 0x1001 is *binary* format version 1</span> 00033 <span class="comment"> * THE VERSION NUMBER IS *NOT* A USER SERVICABLE PART!</span> 00034 <span class="comment"> */</span> 00035 <a name="l00036"></a><a class="code" href="interface__plugin_8h.html#a0">00036</a> <span class="preprocessor">#define INTERFACE_PLUGIN_BASE_VERSION 0x1000</span> <a name="l00037"></a><a class="code" href="interface__plugin_8h.html#a1">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define INTERFACE_PLUGIN_VERSION (INTERFACE_PLUGIN_BASE_VERSION + 4)</span> 00038 <span class="preprocessor"></span> <a name="l00039"></a><a class="code" href="interface__plugin_8h.html#a2">00039</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="interface__plugin_8h.html#a2">interface_version_type</a>; <a name="l00040"></a><a class="code" href="interface__plugin_8h.html#a3">00040</a> <span class="keyword">typedef</span> int(*interface_init_type)(); <a name="l00041"></a><a class="code" href="interface__plugin_8h.html#a4">00041</a> <span class="keyword">typedef</span> int(*interface_start_type)(Playlist *, <span class="keywordtype">int</span>, <span class="keywordtype">char</span> **); <a name="l00042"></a><a class="code" href="interface__plugin_8h.html#a5">00042</a> <span class="keyword">typedef</span> int(*interface_running_type)(); <a name="l00043"></a><a class="code" href="interface__plugin_8h.html#a6">00043</a> <span class="keyword">typedef</span> int(*interface_stop_type)(); <a name="l00044"></a><a class="code" href="interface__plugin_8h.html#a7">00044</a> <span class="keyword">typedef</span> void(*interface_close_type)(); 00045 <a name="l00046"></a><a class="code" href="struct__interface__plugin.html">00046</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__interface__plugin.html">_interface_plugin</a> 00047 { <a name="l00048"></a><a class="code" href="struct__interface__plugin.html#o0">00048</a> <a class="code" href="interface__plugin_8h.html#a2">interface_version_type</a> <a class="code" href="struct__interface__plugin.html#o0">version</a>; <a name="l00049"></a><a class="code" href="struct__interface__plugin.html#o1">00049</a> <span class="keywordtype">char</span> *<a class="code" href="struct__interface__plugin.html#o1">name</a>; <a name="l00050"></a><a class="code" href="struct__interface__plugin.html#o2">00050</a> <span class="keywordtype">char</span> *<a class="code" href="struct__interface__plugin.html#o2">author</a>; <a name="l00051"></a><a class="code" href="struct__interface__plugin.html#o3">00051</a> <span class="keywordtype">void</span> *<a class="code" href="struct__interface__plugin.html#o3">handle</a>; <a name="l00052"></a><a class="code" href="struct__interface__plugin.html#o4">00052</a> <a class="code" href="interface__plugin_8h.html#a3">interface_init_type</a> <a class="code" href="struct__interface__plugin.html#o4">init</a>; <a name="l00053"></a><a class="code" href="struct__interface__plugin.html#o5">00053</a> <a class="code" href="interface__plugin_8h.html#a4">interface_start_type</a> <a class="code" href="struct__interface__plugin.html#o5">start</a>; <a name="l00054"></a><a class="code" href="struct__interface__plugin.html#o6">00054</a> <a class="code" href="interface__plugin_8h.html#a5">interface_running_type</a> <a class="code" href="struct__interface__plugin.html#o6">running</a>; <a name="l00055"></a><a class="code" href="struct__interface__plugin.html#o7">00055</a> <a class="code" href="interface__plugin_8h.html#a6">interface_stop_type</a> <a class="code" href="struct__interface__plugin.html#o7">stop</a>; <a name="l00056"></a><a class="code" href="struct__interface__plugin.html#o8">00056</a> <a class="code" href="interface__plugin_8h.html#a7">interface_close_type</a> <a class="code" href="struct__interface__plugin.html#o8">close</a>; 00057 } <a class="code" href="struct__interface__plugin.html">interface_plugin</a>; 00058 <a name="l00059"></a><a class="code" href="interface__plugin_8h.html#a9">00059</a> <span class="keyword">typedef</span> <a class="code" href="struct__interface__plugin.html">interface_plugin</a>*(*interface_plugin_info_type)(); 00060 00061 <span class="preprocessor">#endif</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 9 10:09:56 2003 for AlsaPlayer by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> </body> </html>