[media] use extern C for c++
authorAndré Roth <neolynx@gmail.com>
Sun, 13 May 2012 11:17:26 +0000 (08:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 13 May 2012 12:34:53 +0000 (09:34 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
lib/include/dvb-fe.h

index a453424..4207ffe 100644 (file)
@@ -88,6 +88,10 @@ struct dvb_v5_fe_parms {
 
 /* Open/close methods */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct dvb_v5_fe_parms *dvb_fe_open(int adapter, int frontend,
                                    unsigned verbose, unsigned use_legacy_call);
 void dvb_fe_close(struct dvb_v5_fe_parms *parms);
@@ -150,6 +154,10 @@ int dvb_fe_diseqc_cmd(struct dvb_v5_fe_parms *parms, const unsigned len,
 int dvb_fe_diseqc_reply(struct dvb_v5_fe_parms *parms, unsigned *len, char *buf,
                       int timeout);
 
+#ifdef __cplusplus
+}
+#endif
+
 /* Arrays from dvb-v5.h */
 
 extern const unsigned fe_bandwidth_name[8];