DVB: privatize scan_service
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Mar 2011 14:15:41 +0000 (16:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Mar 2011 14:16:22 +0000 (16:16 +0200)
modules/access/dvb/scan.c
modules/access/dvb/scan.h

index 8cfe306..31b9f00 100644 (file)
 #include "dvb.h"
 #include "scan.h"
 
+typedef enum
+{
+    SERVICE_UNKNOWN = 0,
+    SERVICE_DIGITAL_RADIO,
+    SERVICE_DIGITAL_TELEVISION,
+    SERVICE_DIGITAL_TELEVISION_AC_SD,
+    SERVICE_DIGITAL_TELEVISION_AC_HD,
+} scan_service_type_t;
+
+typedef struct
+{
+    int  i_program;     /* program number (service id) */
+    scan_configuration_t cfg;
+    int i_snr;
+
+    scan_service_type_t type;
+    char *psz_name;     /* channel name in utf8 or NULL */
+    int  i_channel;     /* -1 if unknown */
+    bool b_crypted;     /* True if potentially crypted */
+
+    int i_network_id;
+
+    int i_nit_version;
+    int i_sdt_version;
+
+} scan_service_t;
+
 struct scan_t
 {
     vlc_object_t *p_obj;
@@ -61,7 +88,8 @@ struct scan_t
 };
 
 /* */
-scan_service_t *scan_service_New( int i_program, const scan_configuration_t *p_cfg  )
+static scan_service_t *scan_service_New( int i_program,
+                                         const scan_configuration_t *p_cfg )
 {
     scan_service_t *p_srv = malloc( sizeof(*p_srv) );
     if( !p_srv )
@@ -83,7 +111,7 @@ scan_service_t *scan_service_New( int i_program, const scan_configuration_t *p_c
     return p_srv;
 }
 
-void scan_service_Delete( scan_service_t *p_srv )
+static void scan_service_Delete( scan_service_t *p_srv )
 {
     free( p_srv->psz_name );
     free( p_srv );
index 67f365f..878962a 100644 (file)
@@ -94,33 +94,6 @@ typedef struct
     char c_polarization;
 } scan_configuration_t;
 
-typedef enum
-{
-    SERVICE_UNKNOWN = 0,
-    SERVICE_DIGITAL_RADIO,
-    SERVICE_DIGITAL_TELEVISION,
-    SERVICE_DIGITAL_TELEVISION_AC_SD,
-    SERVICE_DIGITAL_TELEVISION_AC_HD,
-} scan_service_type_t;
-
-typedef struct
-{
-    int  i_program;     /* program number (service id) */
-    scan_configuration_t cfg;
-    int i_snr;
-
-    scan_service_type_t type;
-    char *psz_name;     /* channel name in utf8 or NULL */
-    int  i_channel;     /* -1 if unknown */
-    bool b_crypted;     /* True if potentially crypted */
-
-    int i_network_id;
-
-    int i_nit_version;
-    int i_sdt_version;
-
-} scan_service_t;
-
 typedef struct
 {
     vlc_object_t *p_obj;
@@ -142,9 +115,6 @@ typedef struct
 
 } scan_session_t;
 
-scan_service_t *scan_service_New( int i_program, const scan_configuration_t *p_cfg  );
-void scan_service_Delete( scan_service_t *p_srv );
-
 scan_t *scan_New( vlc_object_t *p_obj, const scan_parameter_t *p_parameter );
 void scan_Destroy( scan_t *p_scan );