• Main Page
  • Related Pages
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

ext-stream-restore.h

Go to the documentation of this file.
00001 #ifndef foopulseextstreamrestorehfoo
00002 #define foopulseextstreamrestorehfoo
00003 
00004 /***
00005   This file is part of PulseAudio.
00006 
00007   Copyright 2008 Lennart Poettering
00008 
00009   PulseAudio is free software; you can redistribute it and/or modify
00010   it under the terms of the GNU Lesser General Public License as published
00011   by the Free Software Foundation; either version 2.1 of the License,
00012   or (at your option) any later version.
00013 
00014   PulseAudio is distributed in the hope that it will be useful, but
00015   WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00017   General Public License for more details.
00018 
00019   You should have received a copy of the GNU Lesser General Public License
00020   along with PulseAudio; if not, write to the Free Software
00021   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00022   USA.
00023 ***/
00024 
00025 #include <pulse/context.h>
00026 #include <pulse/version.h>
00027 #include <pulse/volume.h>
00028 #include <pulse/channelmap.h>
00029 
00035 PA_C_DECL_BEGIN
00036 
00039 typedef struct pa_ext_stream_restore_info {
00040     const char *name;            
00041     pa_channel_map channel_map;  
00042     pa_cvolume volume;           
00043     const char *device;          
00044     int mute;                    
00045 } pa_ext_stream_restore_info;
00046 
00048 typedef void (*pa_ext_stream_restore_test_cb_t)(
00049         pa_context *c,
00050         uint32_t version,
00051         void *userdata);
00052 
00054 pa_operation *pa_ext_stream_restore_test(
00055         pa_context *c,
00056         pa_ext_stream_restore_test_cb_t cb,
00057         void *userdata);
00058 
00060 typedef void (*pa_ext_stream_restore_read_cb_t)(
00061         pa_context *c,
00062         const pa_ext_stream_restore_info *info,
00063         int eol,
00064         void *userdata);
00065 
00067 pa_operation *pa_ext_stream_restore_read(
00068         pa_context *c,
00069         pa_ext_stream_restore_read_cb_t cb,
00070         void *userdata);
00071 
00073 pa_operation *pa_ext_stream_restore_write(
00074         pa_context *c,
00075         pa_update_mode_t mode,
00076         const pa_ext_stream_restore_info data[],
00077         unsigned n,
00078         int apply_immediately,
00079         pa_context_success_cb_t cb,
00080         void *userdata);
00081 
00083 pa_operation *pa_ext_stream_restore_delete(
00084         pa_context *c,
00085         const char *const s[],
00086         pa_context_success_cb_t cb,
00087         void *userdata);
00088 
00090 pa_operation *pa_ext_stream_restore_subscribe(
00091         pa_context *c,
00092         int enable,
00093         pa_context_success_cb_t cb,
00094         void *userdata);
00095 
00097 typedef void (*pa_ext_stream_restore_subscribe_cb_t)(
00098         pa_context *c,
00099         void *userdata);
00100 
00103 void pa_ext_stream_restore_set_subscribe_cb(
00104         pa_context *c,
00105         pa_ext_stream_restore_subscribe_cb_t cb,
00106         void *userdata);
00107 
00108 PA_C_DECL_END
00109 
00110 #endif

Generated on Fri Nov 26 2010 for PulseAudio by  doxygen 1.7.2