Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
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
dvblast
Commits
53f1180f
Commit
53f1180f
authored
Jan 10, 2010
by
Rémi Duraffort
Committed by
Christophe Massiot
Jan 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add long options support.
parent
4eadf998
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
2 deletions
+40
-2
dvblast.c
dvblast.c
+31
-1
dvblastctl.c
dvblastctl.c
+9
-1
No files found.
dvblast.c
View file @
53f1180f
...
...
@@ -33,6 +33,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <getopt.h>
#include "dvblast.h"
#include "version.h"
...
...
@@ -342,7 +343,36 @@ int main( int i_argc, char **pp_argv )
if
(
i_argc
==
1
)
usage
();
while
(
(
c
=
getopt
(
i_argc
,
pp_argv
,
"q::c:r:t:o:i:a:n:f:s:S:v:pb:m:uWUTd:D:A:ehV"
))
!=
-
1
)
static
const
struct
option
long_options
[]
=
{
{
"config-file"
,
required_argument
,
NULL
,
'c'
},
{
"remote-socket"
,
required_argument
,
NULL
,
'r'
},
{
"ttl"
,
required_argument
,
NULL
,
't'
},
{
"rtp-output"
,
required_argument
,
NULL
,
'o'
},
{
"priority"
,
required_argument
,
NULL
,
'i'
},
{
"adapter"
,
required_argument
,
NULL
,
'a'
},
{
"frontend-number"
,
required_argument
,
NULL
,
'n'
},
{
"frequency"
,
required_argument
,
NULL
,
'f'
},
{
"symbol-rate"
,
required_argument
,
NULL
,
's'
},
{
"diseqc"
,
required_argument
,
NULL
,
'S'
},
{
"voltage"
,
required_argument
,
NULL
,
'v'
},
{
"force-pulse"
,
no_argument
,
NULL
,
'p'
},
{
"bandwith"
,
required_argument
,
NULL
,
'b'
},
{
"modulation"
,
required_argument
,
NULL
,
'm'
},
{
"budget-mode"
,
no_argument
,
NULL
,
'u'
},
{
"slow-cam"
,
no_argument
,
NULL
,
'W'
},
{
"use-udp"
,
no_argument
,
NULL
,
'U'
},
{
"unique-ts-id"
,
no_argument
,
NULL
,
'T'
},
{
"duplicate"
,
required_argument
,
NULL
,
'd'
},
{
"rtp-input"
,
required_argument
,
NULL
,
'D'
},
{
"asi-adapter"
,
required_argument
,
NULL
,
'A'
},
{
"epg-passthrough"
,
no_argument
,
NULL
,
'e'
},
{
"help"
,
no_argument
,
NULL
,
'h'
},
{
"version"
,
no_argument
,
NULL
,
'V'
},
{
0
,
0
,
0
,
0
}
};
while
(
(
c
=
getopt_long
(
i_argc
,
pp_argv
,
"q::c:r:t:o:i:a:n:f:s:S:v:pb:m:uWUTd:D:A:ehV"
,
long_options
,
NULL
))
!=
-
1
)
{
switch
(
c
)
{
...
...
dvblastctl.c
View file @
53f1180f
...
...
@@ -33,6 +33,7 @@
#include <arpa/inet.h>
#include <sys/un.h>
#include <errno.h>
#include <getopt.h>
#include "dvblast.h"
#include "en50221.h"
...
...
@@ -63,7 +64,14 @@ int main( int i_argc, char **ppsz_argv )
{
int
c
;
if
(
(
c
=
getopt
(
i_argc
,
ppsz_argv
,
"r:h"
))
==
-
1
)
static
const
struct
option
long_options
[]
=
{
{
"remote-socket"
,
required_argument
,
NULL
,
'r'
},
{
"help"
,
no_argument
,
NULL
,
'h'
},
{
0
,
0
,
0
,
0
}
};
if
(
(
c
=
getopt_long
(
i_argc
,
ppsz_argv
,
"r:h"
,
long_options
,
NULL
))
==
-
1
)
break
;
switch
(
c
)
...
...
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