[pulseaudio-commits] r1204 - in /trunk/src/pulsecore: sink-input.h sink.h source-output.h source.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 11 16:32:00 PDT 2006


Author: lennart
Date: Sat Aug 12 01:31:59 2006
New Revision: 1204

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1204&root=pulseaudio&view=rev
Log:
comment which values in pa_{sink,source,sink_input,source_output} structures may be NULL

Modified:
    trunk/src/pulsecore/sink-input.h
    trunk/src/pulsecore/sink.h
    trunk/src/pulsecore/source-output.h
    trunk/src/pulsecore/source.h

Modified: trunk/src/pulsecore/sink-input.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/sink-input.h?rev=1204&root=pulseaudio&r1=1203&r2=1204&view=diff
==============================================================================
--- trunk/src/pulsecore/sink-input.h (original)
+++ trunk/src/pulsecore/sink-input.h Sat Aug 12 01:31:59 2006
@@ -45,11 +45,11 @@
     uint32_t index;
     pa_sink_input_state_t state;
     
-    char *name, *driver;
-    pa_module *owner;
+    char *name, *driver;                /* may be NULL */
+    pa_module *owner;                   /* may be NULL */  
 
     pa_sink *sink;
-    pa_client *client;
+    pa_client *client;                  /* may be NULL */
     
     pa_sample_spec sample_spec;
     pa_channel_map channel_map;
@@ -63,19 +63,19 @@
     
     int (*peek) (pa_sink_input *i, pa_memchunk *chunk);
     void (*drop) (pa_sink_input *i, const pa_memchunk *chunk, size_t length);
-    void (*kill) (pa_sink_input *i);
-    pa_usec_t (*get_latency) (pa_sink_input *i);
-    void (*underrun) (pa_sink_input *i);
+    void (*kill) (pa_sink_input *i);             /* may be NULL */
+    pa_usec_t (*get_latency) (pa_sink_input *i); /* may be NULL */
+    void (*underrun) (pa_sink_input *i);         /* may be NULL */
 
     void *userdata;
 
     pa_memchunk resampled_chunk;
-    pa_resampler *resampler;
+    pa_resampler *resampler;                     /* may be NULL */
 
     int variable_rate;
     pa_resample_method_t resample_method;
 
-    pa_memblock *silence_memblock;
+    pa_memblock *silence_memblock;               /* may be NULL */
 };
 
 pa_sink_input* pa_sink_input_new(

Modified: trunk/src/pulsecore/sink.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/sink.h?rev=1204&root=pulseaudio&r1=1203&r2=1204&view=diff
==============================================================================
--- trunk/src/pulsecore/sink.h (original)
+++ trunk/src/pulsecore/sink.h Sat Aug 12 01:31:59 2006
@@ -48,26 +48,27 @@
     pa_core *core;
     pa_sink_state_t state;
 
-    char *name, *description, *driver;
-    pa_module *owner;
+    char *name;
+    char *description, *driver;            /* may be NULL */
+    int is_hardware;
+
+    pa_module *owner;                      /* may be NULL */
 
     pa_sample_spec sample_spec;
     pa_channel_map channel_map;
 
     pa_idxset *inputs;
-    pa_source *monitor_source;
+    pa_source *monitor_source;             /* may be NULL */
     
     pa_cvolume hw_volume, sw_volume;
     int hw_muted, sw_muted;
 
-    int is_hardware;
-
-    void (*notify)(pa_sink*sink);
-    pa_usec_t (*get_latency)(pa_sink *s);
-    int (*set_hw_volume)(pa_sink *s);
-    int (*get_hw_volume)(pa_sink *s);
-    int (*set_hw_mute)(pa_sink *s);
-    int (*get_hw_mute)(pa_sink *s);
+    void (*notify)(pa_sink*sink);          /* may be NULL */
+    pa_usec_t (*get_latency)(pa_sink *s);  /* dito */
+    int (*set_hw_volume)(pa_sink *s);      /* dito */
+    int (*get_hw_volume)(pa_sink *s);      /* dito */
+    int (*set_hw_mute)(pa_sink *s);        /* dito */
+    int (*get_hw_mute)(pa_sink *s);        /* dito */
     
     void *userdata;
 };

Modified: trunk/src/pulsecore/source-output.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/source-output.h?rev=1204&root=pulseaudio&r1=1203&r2=1204&view=diff
==============================================================================
--- trunk/src/pulsecore/source-output.h (original)
+++ trunk/src/pulsecore/source-output.h Sat Aug 12 01:31:59 2006
@@ -44,20 +44,20 @@
     uint32_t index;
     pa_source_output_state_t state;
     
-    char *name, *driver;
-    pa_module *owner;
+    char *name, *driver;                  /* may be NULL */
+    pa_module *owner;                     /* may be NULL */
 
     pa_source *source;
-    pa_client *client;
+    pa_client *client;                    /* may be NULL */
 
     pa_sample_spec sample_spec;
     pa_channel_map channel_map;
     
     void (*push)(pa_source_output *o, const pa_memchunk *chunk);
-    void (*kill)(pa_source_output* o);
-    pa_usec_t (*get_latency) (pa_source_output *o);
+    void (*kill)(pa_source_output* o);              /* may be NULL */
+    pa_usec_t (*get_latency) (pa_source_output *o); /* may be NULL */
 
-    pa_resampler* resampler;
+    pa_resampler* resampler;              /* may be NULL */
     pa_resample_method_t resample_method;
     
     void *userdata;

Modified: trunk/src/pulsecore/source.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/source.h?rev=1204&root=pulseaudio&r1=1203&r2=1204&view=diff
==============================================================================
--- trunk/src/pulsecore/source.h (original)
+++ trunk/src/pulsecore/source.h Sat Aug 12 01:31:59 2006
@@ -50,26 +50,28 @@
     pa_core *core;
     pa_source_state_t state;
     
-    char *name, *description, *driver;
-    pa_module *owner;
+    char *name;
+    char *description, *driver;              /* may be NULL */
+    
+    pa_module *owner;                        /* may be NULL */
 
     pa_sample_spec sample_spec;
     pa_channel_map channel_map;
 
     pa_idxset *outputs;
-    pa_sink *monitor_of;
+    pa_sink *monitor_of;                     /* may be NULL */
 
     pa_cvolume hw_volume, sw_volume;
     int hw_muted, sw_muted;
 
     int is_hardware;
     
-    void (*notify)(pa_source*source);
-    pa_usec_t (*get_latency)(pa_source *s);
-    int (*set_hw_volume)(pa_source *s);
-    int (*get_hw_volume)(pa_source *s);
-    int (*set_hw_mute)(pa_source *s);
-    int (*get_hw_mute)(pa_source *s);
+    void (*notify)(pa_source*source);        /* may be NULL */
+    pa_usec_t (*get_latency)(pa_source *s);  /* dito */
+    int (*set_hw_volume)(pa_source *s);      /* dito */
+    int (*get_hw_volume)(pa_source *s);      /* dito */ 
+    int (*set_hw_mute)(pa_source *s);        /* dito */
+    int (*get_hw_mute)(pa_source *s);        /* dito */
     
     void *userdata;
 };




More information about the pulseaudio-commits mailing list