<!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>timer_local.h Source File</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="modules.html">Modules</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> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center> <hr><h1>timer_local.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span> 00002 <span class="comment"> * Timer interface - local header file</span> 00003 <span class="comment"> * Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz></span> 00004 <span class="comment"> *</span> 00005 <span class="comment"> *</span> 00006 <span class="comment"> * This library is free software; you can redistribute it and/or modify</span> 00007 <span class="comment"> * it under the terms of the GNU Lesser General Public License as</span> 00008 <span class="comment"> * published by the Free Software Foundation; either version 2.1 of</span> 00009 <span class="comment"> * the License, or (at your option) any later version.</span> 00010 <span class="comment"> *</span> 00011 <span class="comment"> * This program is distributed in the hope that it will be useful,</span> 00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> 00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> 00014 <span class="comment"> * GNU Lesser General Public License for more details.</span> 00015 <span class="comment"> *</span> 00016 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span> 00017 <span class="comment"> * License along with this library; if not, write to the Free Software</span> 00018 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span> 00019 <span class="comment"> *</span> 00020 <span class="comment"> */</span> 00021 00022 <span class="preprocessor">#include <stdio.h></span> 00023 <span class="preprocessor">#include <stdlib.h></span> 00024 <span class="preprocessor">#include <limits.h></span> 00025 <span class="preprocessor">#include "local.h"</span> 00026 00027 <span class="keyword">typedef</span> <span class="keyword">struct </span>{ 00028 int (*close)(snd_timer_t *timer); 00029 int (*nonblock)(snd_timer_t *timer, <span class="keywordtype">int</span> nonblock); 00030 int (*info)(snd_timer_t *timer, <a class="code" href="group___timer.html#a1">snd_timer_info_t</a> *info); 00031 int (*params)(snd_timer_t *timer, <a class="code" href="group___timer.html#a2">snd_timer_params_t</a> *params); 00032 int (*status)(snd_timer_t *timer, <a class="code" href="group___timer.html#a3">snd_timer_status_t</a> *status); 00033 int (*rt_start)(snd_timer_t *timer); 00034 int (*rt_stop)(snd_timer_t *timer); 00035 int (*rt_continue)(snd_timer_t *timer); 00036 ssize_t (*read)(snd_timer_t *timer, <span class="keywordtype">void</span> *buffer, size_t size); 00037 } snd_timer_ops_t; 00038 00039 <span class="keyword">struct </span>_snd_timer { 00040 <span class="keywordtype">char</span> *name; 00041 <a class="code" href="group___timer.html#a7">snd_timer_type_t</a> type; 00042 <span class="keywordtype">int</span> mode; 00043 <span class="keywordtype">int</span> poll_fd; 00044 snd_timer_ops_t *ops; 00045 <span class="keywordtype">void</span> *private_data; 00046 }; 00047 00048 <span class="keywordtype">int</span> snd_timer_hw_open(snd_timer_t **handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> dev_class, <span class="keywordtype">int</span> dev_sclass, <span class="keywordtype">int</span> card, <span class="keywordtype">int</span> device, <span class="keywordtype">int</span> subdevice, <span class="keywordtype">int</span> mode); 00049 00050 <span class="keyword">typedef</span> <span class="keyword">struct </span>{ 00051 int (*close)(snd_timer_query_t *timer); 00052 int (*next_device)(snd_timer_query_t *timer, <a class="code" href="group___timer.html#a0">snd_timer_id_t</a> *tid); 00053 } snd_timer_query_ops_t; 00054 00055 <span class="keyword">struct </span>_snd_timer_query { 00056 <span class="keywordtype">char</span> *name; 00057 <a class="code" href="group___timer.html#a7">snd_timer_type_t</a> type; 00058 <span class="keywordtype">int</span> mode; 00059 <span class="keywordtype">int</span> poll_fd; 00060 snd_timer_query_ops_t *ops; 00061 <span class="keywordtype">void</span> *private_data; 00062 }; 00063 00064 <span class="keywordtype">int</span> snd_timer_query_hw_open(snd_timer_query_t **handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode); </pre></div><hr><address style="align: right;"><small>Generated on Wed Apr 2 16:06:33 2003 for ALSA project - the C library reference 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>