mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 13:46:33 +00:00
Internal: Reworked xioopts
This commit is contained in:
parent
1c1a91027a
commit
5eebca3a5b
37 changed files with 1380 additions and 1199 deletions
|
@ -111,6 +111,15 @@ static int xiohelp_option(FILE *of, const struct optname *on, const char *name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const char *xiohelp_opttypename(enum e_types typnum)
|
||||
{
|
||||
if (typnum < 0 || typnum >= TYPE_OVERFLOW) {
|
||||
Warn2("%s(): invalid type number %d", __func__, typnum);
|
||||
return "<invalid>";
|
||||
}
|
||||
return optiontypenames[typnum];
|
||||
}
|
||||
|
||||
int xioopenhelp(FILE *of,
|
||||
int level /* 0..only addresses, 1..and options */
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue