diff options
Diffstat (limited to 'alsa-utils/seq/aseqnet')
-rw-r--r-- | alsa-utils/seq/aseqnet/Makefile.am | 7 | ||||
-rw-r--r-- | alsa-utils/seq/aseqnet/Makefile.in | 501 | ||||
-rw-r--r-- | alsa-utils/seq/aseqnet/README.aseqnet | 53 | ||||
-rw-r--r-- | alsa-utils/seq/aseqnet/aseqnet.1 | 81 | ||||
-rw-r--r-- | alsa-utils/seq/aseqnet/aseqnet.c | 609 |
5 files changed, 0 insertions, 1251 deletions
diff --git a/alsa-utils/seq/aseqnet/Makefile.am b/alsa-utils/seq/aseqnet/Makefile.am deleted file mode 100644 index 2ebc4a5..0000000 --- a/alsa-utils/seq/aseqnet/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ -INCLUDES = -I$(top_srcdir)/include -EXTRA_DIST = README.aseqnet aseqnet.1 - -bin_PROGRAMS = aseqnet -aseqnet_SOURCES = aseqnet.c -aseqnet_LDADD = $(INTLLIBS) -man_MANS = aseqnet.1 diff --git a/alsa-utils/seq/aseqnet/Makefile.in b/alsa-utils/seq/aseqnet/Makefile.in deleted file mode 100644 index 9169d65..0000000 --- a/alsa-utils/seq/aseqnet/Makefile.in +++ /dev/null @@ -1,501 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = aseqnet$(EXEEXT) -subdir = seq/aseqnet -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/aconfig.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_aseqnet_OBJECTS = aseqnet.$(OBJEXT) -aseqnet_OBJECTS = $(am_aseqnet_OBJECTS) -am__DEPENDENCIES_1 = -aseqnet_DEPENDENCIES = $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(aseqnet_SOURCES) -DIST_SOURCES = $(aseqnet_SOURCES) -man1dir = $(mandir)/man1 -NROFF = nroff -MANS = $(man_MANS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALSACONF_FALSE = @ALSACONF_FALSE@ -ALSACONF_TRUE = @ALSACONF_TRUE@ -ALSAMIXER_FALSE = @ALSAMIXER_FALSE@ -ALSAMIXER_TRUE = @ALSAMIXER_TRUE@ -ALSA_CFLAGS = @ALSA_CFLAGS@ -ALSA_LIBS = @ALSA_LIBS@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CURSESINC = @CURSESINC@ -CURSESLIB = @CURSESLIB@ -CURSES_CFLAGS = @CURSES_CFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -POSUB = @POSUB@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SND_UTIL_MAJOR = @SND_UTIL_MAJOR@ -SND_UTIL_MINOR = @SND_UTIL_MINOR@ -SND_UTIL_SUBMINOR = @SND_UTIL_SUBMINOR@ -SND_UTIL_VERSION = @SND_UTIL_VERSION@ -STRIP = @STRIP@ -TESTSOUND = @TESTSOUND@ -USE_NLS = @USE_NLS@ -USE_XMLTO_FALSE = @USE_XMLTO_FALSE@ -USE_XMLTO_TRUE = @USE_XMLTO_TRUE@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -ac_ct_CC = @ac_ct_CC@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -ncurses5_config = @ncurses5_config@ -ncursesw5_config = @ncursesw5_config@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -xmlto = @xmlto@ -INCLUDES = -I$(top_srcdir)/include -EXTRA_DIST = README.aseqnet aseqnet.1 -aseqnet_SOURCES = aseqnet.c -aseqnet_LDADD = $(INTLLIBS) -man_MANS = aseqnet.1 -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign seq/aseqnet/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign seq/aseqnet/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -aseqnet$(EXEEXT): $(aseqnet_OBJECTS) $(aseqnet_DEPENDENCIES) - @rm -f aseqnet$(EXEEXT) - $(LINK) $(aseqnet_LDFLAGS) $(aseqnet_OBJECTS) $(aseqnet_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aseqnet.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` -uninstall-info-am: -install-man1: $(man1_MANS) $(man_MANS) - @$(NORMAL_INSTALL) - test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ - else file=$$i; fi; \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ - done -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) $(MANS) -installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-man - -install-exec-am: install-binPROGRAMS - -install-info: install-info-am - -install-man: install-man1 - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-man - -uninstall-man: uninstall-man1 - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic ctags distclean distclean-compile \ - distclean-generic distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-man1 \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-info-am uninstall-man uninstall-man1 - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/alsa-utils/seq/aseqnet/README.aseqnet b/alsa-utils/seq/aseqnet/README.aseqnet deleted file mode 100644 index bd0b68e..0000000 --- a/alsa-utils/seq/aseqnet/README.aseqnet +++ /dev/null @@ -1,53 +0,0 @@ -================================================================ - ALSA sequencer connectors over network - ver.0.1 - Copyright (C) 1999-2000 Takashi Iwai -================================================================ - -* ASEQNET - -aseqnet is a sequencer client which sends/receives events over -network. Suppose two hosts (hostA and hostB) connected by network. -You need to run ALSA system on both hosts. Then, start aseqnet as a -server on hostA: - - hostA% aseqnet - sequencer opened: 128:0 - -A user client 128 with port 0 was opened. (The client number may -vary.) At next, start client on hostB. The argument is the hostname -where server is running. - - hostB% aseqnet hostA - sequencer opened: 132:0 - -Now events sent to hostA:128:0 is transferred to hostB:132:0, and vice -versa. - -You can connect these ports arbitrary to other sequencer ports. -For example, connect hostB:132:0 to a MIDI output device 65:0. The -aconnect utility can be used for this: - - hostB% aconnect 132:0 65:0 - -Events to hostA:128:0 will be delivered indirectly to hostB:65:0. -You'll hear MIDI sounds as following: - - hostA% pmidi -p 128:0 foo.mid - -The multiple clients may exist simultaneously. If hostC is connected -as a client to hostA, events from from hostA are sent to all connected -network clients, hostB and hostC. However, only one connection is -allowed from a client to a server. - -To disconnect network, stop all clients before server by ctrl-C or -sending signal to them. The server will automatically quit. - -The available options are: - - -p port : specify the TCP port number or TCP service name. - Default value is 40002. - -s addr : explicit read-subscription to the given address - (client:addr). - -d addr : explicit write-subscription to the given address. - -v : verbose mode. diff --git a/alsa-utils/seq/aseqnet/aseqnet.1 b/alsa-utils/seq/aseqnet/aseqnet.1 deleted file mode 100644 index a1dc1d3..0000000 --- a/alsa-utils/seq/aseqnet/aseqnet.1 +++ /dev/null @@ -1,81 +0,0 @@ -.TH aseqnet 1 "January 1, 2000" -.LO 1 -.SH NAME -aseqnet \- ALSA sequencer connectors over network - -.SH SYNOPSIS -.B aseqnet -[remotehost] - -.SH DESCRIPTION -.B aseqnet -is an ALSA sequencer client which sends and receives event packets -over network. -Suppose two hosts connected by network, -.I hostA -as a server -and -.I hostB -as a client. -The ALSA sequencer system must be running on both hosts. -For creating the server port, run the following on hostA: -.IP "" 4 -hostA% aseqnet -.br -sequencer opened: 128:0 -.PP -Then a user client 128 with port 0 was opened on hostA. -(The client number may vary.) -For creating the (network-)client port, run -.B aseqnet -with the hostname of the server: -.IP "" 4 -hostB% aseqnet hostA -.br -sequencer opened: 132:0 -.PP -Now all events sent to hostA:128:0 are transferred to hostB:132:0, and vice -versa. -.PP -The ports created by -.B aseqnet -can be connected arbitrary to other sequencer ports via -.B aconnect(1). -For example, to connect hostB:132:0 to a MIDI output device 65:0: -.IP "" 4 -hostB% aconnect 132:0 65:0 -.PP -Then events to hostA:128:0 will be delivered to hostB:65:0. -The following command plays MIDI on -.I hostB. -.IP "" 4 -hostA% pmidi \-p 128:0 foo.mid -.PP -The multiple clients may exist simultaneously. If -.I hostC -is connected as a client to hostA, events from from hostA are sent -to all connected network clients, i.e. hostB and hostC. -However, only one connection is allowed from a client to a server. -.PP -To disconnect network, stop all clients before server by ctrl-C or -sending signal to them. The server will automatically quit. - -.SH OPTIONS -.TP -.B \-p port -Specify the TCP port number or TCP service name. -.TP -.B \-s addr -Subscribe to the given address for read automatically. -.TP -.B \-d addr -Subscribe to the given address for write automatically. -.TP -.B \-v -Verbose mode. - -.SH "SEE ALSO" -aconnect(1), pmidi(1) - -.SH AUTHOR -Takashi Iwai <tiwai@suse.de>. diff --git a/alsa-utils/seq/aseqnet/aseqnet.c b/alsa-utils/seq/aseqnet/aseqnet.c deleted file mode 100644 index e071ad9..0000000 --- a/alsa-utils/seq/aseqnet/aseqnet.c +++ /dev/null @@ -1,609 +0,0 @@ -/* - * network server/client for ALSA sequencer - * ver.0.1 - * - * Copyright (C) 1999-2000 Takashi Iwai - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * 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. - * - */ - -#include <stdio.h> -#include <stdlib.h> -#include <ctype.h> -#include <string.h> -#include <netinet/in.h> -#include <sys/socket.h> -#include <netdb.h> -#include <locale.h> -#include <alsa/asoundlib.h> -#include <getopt.h> -#include <signal.h> -#include <assert.h> -#include "aconfig.h" -#include "gettext.h" - -/* - * prototypes - */ -static void usage(void); -static void init_buf(void); -static void init_pollfds(void); -static void close_files(void); -static void init_seq(char *source, char *dest); -static int get_port(char *service); -static void sigterm_exit(int sig); -static void init_server(int port); -static void init_client(char *server, int port); -static void do_loop(void); -static int copy_local_to_remote(void); -static int copy_remote_to_local(int fd); - -/* - * default TCP port number - */ -#define DEFAULT_PORT 40002 - -/* - * local input buffer - */ -static char *readbuf; -static int max_rdlen; -static char *writebuf; -static int cur_wrlen, max_wrlen; - -#define MAX_BUF_EVENTS 200 -#define MAX_CONNECTION 10 - -static snd_seq_t *handle; -static struct pollfd *seqifds = NULL; -static struct pollfd *seqofds = NULL; -static struct pollfd *pollfds = NULL; -static int seqifds_count = 0; -static int seqofds_count = 0; -static int pollfds_count = 0; -static int sockfd, netfd[MAX_CONNECTION] = {[0 ... MAX_CONNECTION-1] = -1}; -static int max_connection; -static int cur_connected; -static int seq_port; - -static int server_mode; -static int verbose = 0; -static int info = 0; - - -/* - * main routine - */ - -static const struct option long_option[] = { - {"port", 1, NULL, 'p'}, - {"source", 1, NULL, 's'}, - {"dest", 1, NULL, 'd'}, - {"help", 0, NULL, 'h'}, - {"verbose", 0, NULL, 'v'}, - {"info", 0, NULL, 'i'}, - {NULL, 0, NULL, 0}, -}; - -int main(int argc, char **argv) -{ - int c; - int port = DEFAULT_PORT; - char *source = NULL, *dest = NULL; - -#ifdef ENABLE_NLS - setlocale(LC_ALL, ""); - textdomain(PACKAGE); -#endif - - while ((c = getopt_long(argc, argv, "p:s:d:vi", long_option, NULL)) != -1) { - switch (c) { - case 'p': - if (isdigit(*optarg)) - port = atoi(optarg); - else - port = get_port(optarg); - break; - case 's': - source = optarg; - break; - case 'd': - dest = optarg; - break; - case 'v': - verbose++; - break; - case 'i': - info++; - break; - default: - usage(); - exit(1); - } - } - - signal(SIGINT, sigterm_exit); - signal(SIGTERM, sigterm_exit); - - init_buf(); - init_seq(source, dest); - - if (optind >= argc) { - server_mode = 1; - max_connection = MAX_CONNECTION; - init_pollfds(); - init_server(port); - } else { - server_mode = 0; - max_connection = 1; - init_pollfds(); - init_client(argv[optind], port); - } - - do_loop(); - - close_files(); - - return 0; -} - - -/* - * print usage - */ -static void usage(void) -{ - printf(_("aseqnet - network client/server on ALSA sequencer\n")); - printf(_(" Copyright (C) 1999 Takashi Iwai\n")); - printf(_("usage:\n")); - printf(_(" server mode: aseqnet [-options]\n")); - printf(_(" client mode: aseqnet [-options] server_host\n")); - printf(_("options:\n")); - printf(_(" -p,--port # : sepcify TCP port (digit or service name)\n")); - printf(_(" -s,--source addr : read from given addr (client:port)\n")); - printf(_(" -d,--dest addr : write to given addr (client:port)\n")); - printf(_(" -v, --verbose : print verbose messages\n")); - printf(_(" -i, --info : print certain received events\n")); -} - - -/* - * allocate and initialize buffers - */ -static void init_buf(void) -{ - max_wrlen = MAX_BUF_EVENTS * sizeof(snd_seq_event_t); - max_rdlen = MAX_BUF_EVENTS * sizeof(snd_seq_event_t); - writebuf = malloc(max_wrlen); - readbuf = malloc(max_rdlen); - if (writebuf == NULL || readbuf == NULL) { - fprintf(stderr, _("can't malloc\n")); - exit(1); - } - memset(writebuf, 0, max_wrlen); - memset(readbuf, 0, max_rdlen); - cur_wrlen = 0; -} - -/* - * allocate and initialize poll array - */ -static void init_pollfds(void) -{ - pollfds_count = seqifds_count + seqofds_count + 1 + max_connection; - pollfds = (struct pollfd *)calloc(pollfds_count, sizeof(struct pollfd)); - assert(pollfds); -} - -/* - * close all files - */ -static void close_files(void) -{ - int i; - if (verbose) - fprintf(stderr, _("closing files..\n")); - for (i = 0; i < max_connection; i++) { - if (netfd[i] >= 0) - close(netfd[i]); - } - if (sockfd >= 0) - close(sockfd); -} - - -/* - * initialize sequencer - */ -static void init_seq(char *source, char *dest) -{ - snd_seq_addr_t addr; - int err, counti, counto; - - if (snd_seq_open(&handle, "default", SND_SEQ_OPEN_DUPLEX, 0) < 0) { - perror("snd_seq_open"); - exit(1); - } - if (seqifds) - free(seqifds); - if (seqofds) - free(seqofds); - counti = seqifds_count = snd_seq_poll_descriptors_count(handle, POLLIN); - assert(counti > 0); - counto = seqofds_count = snd_seq_poll_descriptors_count(handle, POLLOUT); - assert(counto > 0); - seqifds = (struct pollfd *)calloc(counti, sizeof(struct pollfd)); - assert(seqifds); - seqofds = (struct pollfd *)calloc(counto, sizeof(struct pollfd)); - assert(seqofds); - err = snd_seq_poll_descriptors(handle, seqifds, counti, POLLIN); - assert(err == counti); - err = snd_seq_poll_descriptors(handle, seqofds, counto, POLLOUT); - assert(err == counto); - - snd_seq_nonblock(handle, 1); - - /* set client info */ - if (server_mode) - snd_seq_set_client_name(handle, "Net Server"); - else - snd_seq_set_client_name(handle, "Net Client"); - - /* create a port */ - seq_port = snd_seq_create_simple_port(handle, "Network", - SND_SEQ_PORT_CAP_READ | - SND_SEQ_PORT_CAP_WRITE | - SND_SEQ_PORT_CAP_SUBS_READ | - SND_SEQ_PORT_CAP_SUBS_WRITE, - SND_SEQ_PORT_TYPE_MIDI_GENERIC); - if (seq_port < 0) { - perror("create seq port"); - exit(1); - } - if (verbose) - fprintf(stderr, _("sequencer opened: %d:%d\n"), - snd_seq_client_id(handle), seq_port); - - /* explicit subscriptions */ - if (source) { - /* read subscription */ - if (snd_seq_parse_address(handle, &addr, source) < 0) { - fprintf(stderr, _("invalid source address %s\n"), source); - exit(1); - } - if (snd_seq_connect_from(handle, seq_port, addr.client, addr.port)) { - perror("read subscription"); - exit(1); - } - } - if (dest) { - /* write subscription */ - if (snd_seq_parse_address(handle, &addr, dest) < 0) { - fprintf(stderr, _("invalid destination address %s\n"), dest); - exit(1); - } - if (snd_seq_connect_to(handle, seq_port, addr.client, addr.port)) { - perror("write subscription"); - exit(1); - } - } -} - - -/* - * convert from string to TCP port number - */ -static int get_port(char *service) -{ - struct servent *sp; - - if ((sp = getservbyname(service, "tcp")) == NULL){ - fprintf(stderr, _("service '%s' is not found in /etc/services\n"), service); - return -1; - } - return sp->s_port; -} - -/* - * signal handler - */ -static void sigterm_exit(int sig) -{ - close_files(); - exit(1); -} - - -/* - * initialize network server - */ -static void init_server(int port) -{ - int i; - int curstate = 1; - struct sockaddr_in addr; - - memset(&addr, 0, sizeof(addr)); - - addr.sin_family = AF_INET; - addr.sin_addr.s_addr = INADDR_ANY; - addr.sin_port = htons(port); - - sockfd = socket(AF_INET, SOCK_STREAM, 0); - if (sockfd < 0) { - perror("create socket"); - exit(1); - } - setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &curstate, sizeof(curstate)); - /* the return value is ignored.. */ - - if (bind(sockfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { - perror("can't bind"); - exit(1); - } - - if (listen(sockfd, 5) < 0) { - perror("can't listen"); - exit(1); - } - - cur_connected = 0; - for (i = 0; i < max_connection; i++) - netfd[i] = -1; -} - -/* - * start connection on server - */ -static void start_connection(void) -{ - struct sockaddr_in addr; - int i; - socklen_t addr_len; - - for (i = 0; i < max_connection; i++) { - if (netfd[i] < 0) - break; - } - if (i >= max_connection) { - fprintf(stderr, _("too many connections!\n")); - exit(1); - } - memset(&addr, 0, sizeof(addr)); - addr_len = sizeof(addr); - netfd[i] = accept(sockfd, (struct sockaddr *)&addr, &addr_len); - if (netfd[i] < 0) { - perror("accept"); - exit(1); - } - if (verbose) - fprintf(stderr, _("accepted[%d]\n"), netfd[i]); - cur_connected++; -} - -/* - * initialize network client - */ -static void init_client(char *server, int port) -{ - struct sockaddr_in addr; - struct hostent *host; - int curstate = 1; - int fd; - - if ((fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0){ - perror("create socket"); - exit(1); - } - if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &curstate, sizeof(curstate)) < 0) { - perror("setsockopt"); - exit(1); - } - if ((host = gethostbyname(server)) == NULL){ - fprintf(stderr, _("can't get address %s\n"), server); - exit(1); - } - addr.sin_port = htons(port); - addr.sin_family = AF_INET; - memcpy(&addr.sin_addr, host->h_addr, host->h_length); - if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { - perror("connect"); - exit(1); - } - if (verbose) - fprintf(stderr, _("ok.. connected\n")); - netfd[0] = fd; - cur_connected = 1; -} - -/* - * event loop - */ -static void do_loop(void) -{ - int i, rc, width; - int seqifd_ptr, sockfd_ptr = -1, netfd_ptr; - - for (;;) { - memset(pollfds, 0, pollfds_count * sizeof(struct pollfd)); - seqifd_ptr = 0; - memcpy(pollfds, seqifds, sizeof(*seqifds)*(width = seqifds_count)); - if (server_mode) { - sockfd_ptr = width; - pollfds[width].fd = sockfd; - pollfds[width].events = POLLIN; - width++; - } - netfd_ptr = width; - for (i = 0; i < max_connection; i++) { - if (netfd[i] >= 0) { - pollfds[width].fd = netfd[i]; - pollfds[width].events = POLLIN; - width++; - } - } - do { - rc = poll(pollfds, width, -1); - } while (rc <= 0 && errno == EINTR); - if (rc <= 0) { - perror("poll"); - exit(1); - } - if (server_mode) { - if (pollfds[sockfd_ptr].revents & (POLLIN|POLLOUT)) - start_connection(); - } - for (i = 0; i < seqifds_count; i++) - if (pollfds[seqifd_ptr + i].revents & (POLLIN|POLLOUT)) { - if (copy_local_to_remote()) - return; - break; - } - for (i = 0; i < max_connection; i++) { - if (netfd[i] < 0) - continue; - if (pollfds[netfd_ptr + i].revents & (POLLIN|POLLOUT)) { - if (copy_remote_to_local(netfd[i])) { - netfd[i] = -1; - cur_connected--; - if (cur_connected <= 0) - return; - } - } - } - } -} - - -/* - * flush write buffer - send data to the socket - */ -static void flush_writebuf(void) -{ - if (cur_wrlen) { - int i; - for (i = 0; i < max_connection; i++) { - if (netfd[i] >= 0) - write(netfd[i], writebuf, cur_wrlen); - } - cur_wrlen = 0; - } -} - -/* - * get space from write buffer - */ -static char *get_writebuf(int len) -{ - char *buf; - if (cur_wrlen + len >= max_wrlen) - flush_writebuf(); - buf = writebuf + cur_wrlen; - cur_wrlen += len; - return buf; -} - -static void print_event(snd_seq_event_t *ev) -{ - switch (ev->type) { - case SND_SEQ_EVENT_CONTROLLER: - printf(_("Channel %2d: Control event : %5d\n"), - ev->data.control.channel, ev->data.control.value); - break; - case SND_SEQ_EVENT_PITCHBEND: - printf(_("Channel %2d: Pitchbender : %5d\n"), - ev->data.control.channel, ev->data.control.value); - break; - case SND_SEQ_EVENT_NOTEON: - printf(_("Channel %2d: Note On event : %5d\n"), - ev->data.control.channel, ev->data.note.note); - break; - case SND_SEQ_EVENT_NOTEOFF: - printf(_("Channel %2d: Note Off event: %5d\n"), - ev->data.control.channel, ev->data.note.note); - break; - } -} - -#define EVENT_PACKET_SIZE 32 - -/* - * copy events from sequencer to port(s) - */ -static int copy_local_to_remote(void) -{ - int rc; - snd_seq_event_t *ev; - char *buf; - - while ((rc = snd_seq_event_input(handle, &ev)) >= 0 && ev) { - if (ev->type >= SND_SEQ_EVENT_CLIENT_START && - ! snd_seq_ev_is_variable_type(ev)) { - snd_seq_free_event(ev); - continue; - } - if (snd_seq_ev_is_variable(ev)) { - int len; - len = EVENT_PACKET_SIZE + ev->data.ext.len; - buf = get_writebuf(len); - memcpy(buf, ev, sizeof(snd_seq_event_t)); - memcpy(buf + EVENT_PACKET_SIZE, ev->data.ext.ptr, ev->data.ext.len); - } else { - buf = get_writebuf(EVENT_PACKET_SIZE); - memcpy(buf, ev, EVENT_PACKET_SIZE); - } - if (info) - print_event(ev); - snd_seq_free_event(ev); - } - flush_writebuf(); - return 0; -} - -/* - * copy events from a port to sequencer - */ -static int copy_remote_to_local(int fd) -{ - int count; - char *buf; - snd_seq_event_t *ev; - - count = read(fd, readbuf, MAX_BUF_EVENTS * sizeof(snd_seq_event_t)); - buf = readbuf; - - if (count == 0) { - if (verbose) - fprintf(stderr, _("disconnected\n")); - return 1; - } - - while (count > 0) { - ev = (snd_seq_event_t*)buf; - buf += EVENT_PACKET_SIZE; - count -= EVENT_PACKET_SIZE; - if (snd_seq_ev_is_variable(ev) && ev->data.ext.len > 0) { - ev->data.ext.ptr = buf; - buf += ev->data.ext.len; - count -= ev->data.ext.len; - } - snd_seq_ev_set_direct(ev); - snd_seq_ev_set_source(ev, seq_port); - snd_seq_ev_set_subs(ev); - if (info) - print_event(ev); - snd_seq_event_output(handle, ev); - } - - snd_seq_drain_output(handle); - return 0; -} - |