Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
60264b63
Commit
60264b63
authored
Mar 05, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVB: privatize scan_service
parent
3fcdfd41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
32 deletions
+30
-32
modules/access/dvb/scan.c
modules/access/dvb/scan.c
+30
-2
modules/access/dvb/scan.h
modules/access/dvb/scan.h
+0
-30
No files found.
modules/access/dvb/scan.c
View file @
60264b63
...
...
@@ -48,6 +48,33 @@
#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
);
...
...
modules/access/dvb/scan.h
View file @
60264b63
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment