Browse code

avdevice: Give names to anonymously typedeffed structs

Anonymous structs can cause trouble in header files, so try to
avoid them altogether as a matter of good style.

Diego Biurrun authored on 2014/07/18 00:51:27
Showing 4 changed files
... ...
@@ -51,7 +51,7 @@
51 51
 #include <signal.h>
52 52
 #include <stdint.h>
53 53
 
54
-typedef struct {
54
+typedef struct VideoData {
55 55
     AVClass *class;
56 56
     int video_fd;
57 57
     int tuner_fd;
... ...
@@ -76,7 +76,7 @@ static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *v
76 76
     return AV_PIX_FMT_NONE;
77 77
 }
78 78
 
79
-typedef struct {
79
+typedef struct FBDevContext {
80 80
     AVClass *class;          ///< class for private options
81 81
     int frame_size;          ///< size in bytes of a grabbed frame
82 82
     AVRational framerate_q;  ///< framerate
... ...
@@ -38,7 +38,7 @@
38 38
  */
39 39
 #define FIFO_PACKETS_NUM 16
40 40
 
41
-typedef struct {
41
+typedef struct JackData {
42 42
     AVClass        *class;
43 43
     jack_client_t * client;
44 44
     int             activated;
... ...
@@ -44,7 +44,7 @@
44 44
 
45 45
 #define AUDIO_BLOCK_SIZE 4096
46 46
 
47
-typedef struct {
47
+typedef struct AudioData {
48 48
     AVClass *class;
49 49
     int fd;
50 50
     int sample_rate;