comparison stream/tv.h @ 31322:016194f71de3

Fix function pointer types in tvi_functions struct to be proper declarations.
author reimar
date Sun, 13 Jun 2010 17:20:29 +0000
parents a5e7590ffdbd
children 535ebcd085e4
comparison
equal deleted inserted replaced
31321:22713e4fde5f 31322:016194f71de3
107 const char *short_name; 107 const char *short_name;
108 const char *author; 108 const char *author;
109 const char *comment; 109 const char *comment;
110 } tvi_info_t; 110 } tvi_info_t;
111 111
112
113 struct priv;
114
112 typedef struct tvi_functions_s 115 typedef struct tvi_functions_s
113 { 116 {
114 int (*init)(); 117 int (*init)(struct priv *priv);
115 int (*uninit)(); 118 int (*uninit)(struct priv *priv);
116 int (*control)(); 119 int (*control)(struct priv *priv, int cmd, void *arg);
117 int (*start)(); 120 int (*start)(struct priv *priv);
118 double (*grab_video_frame)(); 121 double (*grab_video_frame)(struct priv *priv, char *buffer, int len);
119 int (*get_video_framesize)(); 122 int (*get_video_framesize)(struct priv *priv);
120 double (*grab_audio_frame)(); 123 double (*grab_audio_frame)(struct priv *priv, char *buffer, int len);
121 int (*get_audio_framesize)(); 124 int (*get_audio_framesize)(struct priv *priv);
122 } tvi_functions_t; 125 } tvi_functions_t;
123 126
124 typedef struct tvi_handle_s { 127 typedef struct tvi_handle_s {
125 const tvi_functions_t *functions; 128 const tvi_functions_t *functions;
126 void *priv; 129 void *priv;