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 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 
00032 PA_C_DECL_BEGIN
00033 
00036 typedef struct pa_ext_stream_restore_info {
00037     const char *name;            
00038     pa_channel_map channel_map;  
00039     pa_cvolume volume;           
00040     const char *device;          
00041     int mute;                    
00042 } pa_ext_stream_restore_info;
00043 
00045 typedef void (*pa_ext_stream_restore_test_cb_t)(
00046         pa_context *c,
00047         uint32_t version,
00048         void *userdata);
00049 
00051 pa_operation *pa_ext_stream_restore_test(
00052         pa_context *c,
00053         pa_ext_stream_restore_test_cb_t cb,
00054         void *userdata);
00055 
00057 typedef void (*pa_ext_stream_restore_read_cb_t)(
00058         pa_context *c,
00059         const pa_ext_stream_restore_info *info,
00060         int eol,
00061         void *userdata);
00062 
00064 pa_operation *pa_ext_stream_restore_read(
00065         pa_context *c,
00066         pa_ext_stream_restore_read_cb_t cb,
00067         void *userdata);
00068 
00070 pa_operation *pa_ext_stream_restore_write(
00071         pa_context *c,
00072         pa_update_mode_t mode,
00073         const pa_ext_stream_restore_info data[],
00074         unsigned n,
00075         int apply_immediately,
00076         pa_context_success_cb_t cb,
00077         void *userdata);
00078 
00080 pa_operation *pa_ext_stream_restore_delete(
00081         pa_context *c,
00082         const char *const s[],
00083         pa_context_success_cb_t cb,
00084         void *userdata);
00085 
00087 pa_operation *pa_ext_stream_restore_subscribe(
00088         pa_context *c,
00089         int enable,
00090         pa_context_success_cb_t cb,
00091         void *userdata);
00092 
00094 typedef void (*pa_ext_stream_restore_subscribe_cb_t)(
00095         pa_context *c,
00096         void *userdata);
00097 
00100 void pa_ext_stream_restore_set_subscribe_cb(
00101         pa_context *c,
00102         pa_ext_stream_restore_subscribe_cb_t cb,
00103         void *userdata);
00104 
00105 PA_C_DECL_END
00106 
00107 #endif

Generated on Tue Sep 16 10:58:58 2008 for PulseAudio by  doxygen 1.5.4