Index: branches/freebob-syt-experiments/config.h.in =================================================================== --- branches/freebob-syt-experiments/config.h.in (revision 185) +++ branches/freebob-syt-experiments/config.h.in (revision 185) @@ -0,0 +1,94 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Freebob major version */ +#undef FREEBOB_MAJOR_VERSION + +/* Freebob micro version */ +#undef FREEBOB_MICRO_VERSION + +/* Freebob minor version */ +#undef FREEBOB_MINOR_VERSION + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#undef HAVE_LIBPTHREAD + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +#undef NO_MINUS_C_MINUS_O + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if MMX assembly is available. */ +#undef USE_MMX + +/* Define to 1 if SSE assembly is available. */ +#undef USE_SSE + +/* Version number of package */ +#undef VERSION + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `unsigned' if does not define. */ +#undef size_t + +/* Define to empty if the keyword `volatile' does not work. Warning: valid + code using `volatile' can become incorrect without. Disable with care. */ +#undef volatile + +/* "Nope it's intel" */ +#undef x86 Index: branches/freebob-syt-experiments/libfreebob.pc.in =================================================================== --- branches/freebob-syt-experiments/libfreebob.pc.in (revision 125) +++ branches/freebob-syt-experiments/libfreebob.pc.in (revision 125) @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libfreebob +Description: FreeBob +Version: @VERSION@ +Libs: -L${libdir} -lfreebob +Cflags: -I${includedir} Index: branches/freebob-syt-experiments/tests/test-freebob.c =================================================================== --- branches/freebob-syt-experiments/tests/test-freebob.c (revision 185) +++ branches/freebob-syt-experiments/tests/test-freebob.c (revision 185) @@ -0,0 +1,436 @@ +/* test-freebob.c + * Copyright (C) 2005 by Daniel Wagner + * + * This file is part of FreeBob. + * + * FreeBob 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 2 of the License, or + * (at your option) any later version. + * FreeBob 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 FreeBob; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA. + */ + +#include + +#include "libfreebob/freebob.h" + +#include +#include +#include +#include + +const char *argp_program_version = PACKAGE_STRING; +const char *argp_program_bug_address = PACKAGE_BUGREPORT; + +// Program documentation. +static char doc[] = "FreeBob -- a driver for BeBob devices (test application)\n\n" + "OPERATION: discover\n" + " odisocver\n" + " setsamplerate\n" + " xmldump\n" + " testmultidevicediscovery\n" + " streamformats\n"; + +// A description of the arguments we accept. +static char args_doc[] = "OPERATION"; + +struct arguments +{ + short silent; + short verbose; + int port; + int node_id; + int node_id_set; + int time; + char* args[2]; +}; + +// The options we understand. +static struct argp_option options[] = { + {"quiet", 'q', 0, 0, "Don't produce any output" }, + {"silent", 's', 0, OPTION_ALIAS }, + + {"verbose", 'v', "level", 0, "Produce verbose output" }, + + + {"node", 'n', "id", 0, "Node to use" }, + {"port", 'p', "nr", 0, "IEEE1394 Port to use" }, + {"time", 't', "time", 0, "Workaround: sleep