1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-08-13 17:38:59 +00:00
Files
.github
build
clients
cmake_modules
conf
debian
docker
docs
dtd
fonts
fscomm
htdocs
images
libs
apr
apr-util
esl
iksemel
libdingaling
libnatpmp
libscgi
libsndfile
libteletone
libvpx
libyuv
libzrtp
miniupnpc
srtp
stb
unimrcp
win32
xmlrpc-c
Windows
conf
doc
examples
include
lib
abyss
curl_transport
expat
libutil
libwww_transport
util
include
Makefile
Makefile.depend
casprintf.c
cmdline_parser.c
cmdline_parser_cpp.cpp
getoptx.c
getoptx.h
pthreadx_win32.c
string_parser.c
stripcaseeq.c
wininet_transport
Makefile
Makefile.depend
src
tools
GNUmakefile
Makefile
Makefile.depend
README
common.mk
config.mk.in
configure.ac
configure.gnu
dll-common.mk
dylib-common.mk
install-sh
irix-common.mk
missing
mkinstalldirs
srcdir.mk.in
stamp-h.in
transport_config.mk
unix-common.mk
version.h
version.mk
xmlrpc-c-config.main
xmlrpc-c-config.test.main
xmlrpc_amconfig.h.in
xmlrpc_config.h.in
.gitignore
scripts
src
support-d
tests
w32
web
yum
.clang-format
.drone.yml
.gitattributes
.gitconfig
.gitignore
.mailmap
Freeswitch.2017.sln
Freeswitch.2017.sln.bat
INSTALL
LICENSE
Makefile.am
README.md
acinclude.m4
bootstrap.sh
cc.sh
cluecon.tmpl
cluecon2.tmpl
cluecon2_small.tmpl
cluecon_small.tmpl
configure.ac
devel-bootstrap.sh
freeswitch-config-rayo.spec
freeswitch-sounds-en-ca-june.spec
freeswitch-sounds-en-us-allison.spec
freeswitch-sounds-en-us-callie.spec
freeswitch-sounds-fr-ca-june.spec
freeswitch-sounds-music.spec
freeswitch-sounds-pt-BR-karina.spec
freeswitch-sounds-ru-RU-elena.spec
freeswitch-sounds-sv-se-jakob.spec
freeswitch.spec
msbuild.cmd
swig_common.i
freeswitch/libs/xmlrpc-c/lib/util/getoptx.h

52 lines
1.8 KiB
C
Raw Normal View History

/* Interface to getopt_long_onlyx() */
enum argreq {no_argument, required_argument, optional_argument};
struct optionx {
/* This describes an option. If the field `flag' is nonzero, it
points to a variable that is to be set to the value given in
the field `val' when the option is found, but left unchanged if
the option is not found.
*/
const char * name;
enum argreq has_arg;
int * flag;
int val;
};
/* long_options[] is a list terminated by an element that contains
a NULL 'name' member.
*/
void
getopt_long_onlyx(int const argc,
char ** const argv,
const char * const options,
struct optionx * const long_options,
unsigned int * const opt_index,
int const opterrArg,
int * const end_of_options,
const char ** const optarg_arg,
const char ** const unrecognized_option);
unsigned int
getopt_argstart(void);
/*
Copyright (C) 1989 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */