ida-cvs Mailing List for Ida - Multimedia Access System
Status: Pre-Alpha
Brought to you by:
alexanderb
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(22) |
Aug
|
Sep
|
Oct
(19) |
Nov
(101) |
Dec
(106) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(21) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alexander B. <ale...@us...> - 2005-01-14 19:13:32
|
Update of /cvsroot/ida/mod_avap/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16480/src Modified Files: Makefile.am avap-cmds.c avap-cmds.h database.c mod_avap.c protocol.c protocol.h Log Message: - added databaseuser config flag - some smaller fixes Index: database.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/database.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** database.c 13 Jan 2005 16:19:03 -0000 1.8 --- database.c 14 Jan 2005 19:13:15 -0000 1.9 *************** *** 110,113 **** --- 110,124 ---- } } + if(config->databaseuser != NULL) { + size += 6 + strlen(config->databaseuser); + if(avdb_crequest != NULL) { + avdb_crequest = resize_string(avdb_crequest, size); + sprintf(avdb_crequest, "%s user=%s", avdb_crequest, config->databaseuser); + } + else { + avdb_crequest = malloc(size); + sprintf(avdb_crequest, "user=%s", config->databaseuser); + } + } if(config->databasename != NULL) { len = strlen(config->databasename); *************** *** 135,139 **** // connect postgresql server ! conn = db_connect(p, avdb_crequest); ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "Checking for database tables..."); --- 146,150 ---- // connect postgresql server ! if((conn = db_connect(p, avdb_crequest)) == NULL) return -1; ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "Checking for database tables..."); *************** *** 143,147 **** PQclear(result); PQfinish(conn); ! ap_log_perror(APLOG_MARK, APLOG_WARNING, 0, p, "No Song-Table found in Database \"%s\"!", config->databasename); return -1; } --- 154,158 ---- PQclear(result); PQfinish(conn); ! ap_log_perror(APLOG_MARK, APLOG_ERR, 0, p, "No Song-Table found in Database \"%s\"!", config->databasename); return -1; } *************** *** 448,456 **** { PGconn *conn = PQconnectdb(request); ! if (PQstatus(conn) == CONNECTION_BAD) ! ap_log_perror(APLOG_MARK, APLOG_WARNING, 0, p, "Can't connect to SQL server"); ! else ! ap_log_perror(APLOG_MARK, APLOG_DEBUG, 0, p, "Connected to Database \"%s\"", request); ! return conn; } --- 459,467 ---- { PGconn *conn = PQconnectdb(request); ! if(PQstatus(conn) == CONNECTION_BAD) { ! ap_log_perror(APLOG_MARK, APLOG_ERR, 0, p, "Can't connect to SQL server: %s", request); ! return NULL; ! } ! ap_log_perror(APLOG_MARK, APLOG_DEBUG, 0, p, "Connected to SQL server: %s", request); return conn; } Index: Makefile.am =================================================================== RCS file: /cvsroot/ida/mod_avap/src/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.am 13 Jan 2005 16:19:03 -0000 1.5 --- Makefile.am 14 Jan 2005 19:13:15 -0000 1.6 *************** *** 10,12 **** ## Define the source file for the module ! libmodavap_la_SOURCES = mod_avap.c avap.h protocol.c protocol.h avap-items.h avap-cmds.h avap-cmds.c database.c database.h --- 10,12 ---- ## Define the source file for the module ! libmodavap_la_SOURCES = mod_avap.c avap.h protocol.c protocol.h avap-itmes.h avap-items.c avap-cmds.c avap-cmds.h database.c database.h tools.h tools.c Index: avap-cmds.h =================================================================== RCS file: /cvsroot/ida/mod_avap/src/avap-cmds.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** avap-cmds.h 16 Jul 2004 18:56:45 -0000 1.5 --- avap-cmds.h 14 Jan 2005 19:13:15 -0000 1.6 *************** *** 38,41 **** --- 38,43 ---- const char* set_ava_protocol(cmd_parms *cmd, void *dummy, int flag); + const char* set_prealloc_protocols(cmd_parms *cmd, void *dummy, const char *arg); + const char* set_avap_servername(cmd_parms *cmd, void *dummy, const char *arg); Index: mod_avap.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/mod_avap.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mod_avap.c 13 Jan 2005 16:19:03 -0000 1.11 --- mod_avap.c 14 Jan 2005 19:13:15 -0000 1.12 *************** *** 41,51 **** int avap_init(apr_pool_t *p, apr_pool_t *ptemp, apr_pool_t *plog, server_rec *s) { - ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: pre-config"); avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); - ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: post-config"); // initialize database and protocol ! if(db_check_relations() == -1) return !OK; ! if(init_protocols(p, conf) == -1) return !OK; ! return OK; } --- 41,54 ---- int avap_init(apr_pool_t *p, apr_pool_t *ptemp, apr_pool_t *plog, server_rec *s) { avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); // initialize database and protocol ! if(db_check_relations(p, conf) == -1) { ! ap_log_perror(APLOG_MARK, APLOG_ERR, 0, p, "Checking for Database Tables"); ! return !OK; ! } ! if(init_protocols(p, conf) == -1) { ! ap_log_perror(APLOG_MARK, APLOG_ERR, 0, p, "Initializing Protocolls"); ! return !OK; ! } return OK; } *************** *** 59,69 **** // This is a fix needed when iTunes tries to connect ! // iTunes does not set the hostname, but apache header parsers won't like that if(!r->hostname && !apr_table_get(r->headers_in, "Host")) { apr_table_set(r->headers_in, "Host", conf->servername); } - - return OK; } --- 62,70 ---- // This is a fix needed when iTunes tries to connect ! // iTunes does not set the hostname but apache header parsers expects it if(!r->hostname && !apr_table_get(r->headers_in, "Host")) { apr_table_set(r->headers_in, "Host", conf->servername); } return OK; } *************** *** 172,176 **** // This is a fix needed for iTunes. chunked encoding causes trouble, // so we are using deflate compression. ! ap_add_output_filter("DEFLATE", NULL, r, r->connection); buffer = get_response(r->pool, request_type); --- 173,177 ---- // This is a fix needed for iTunes. chunked encoding causes trouble, // so we are using deflate compression. ! // ap_add_output_filter("DEFLATE", NULL, r, r->connection); buffer = get_response(r->pool, request_type); *************** *** 183,191 **** static void avap_register_hooks(apr_pool_t *p) { - ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: pre-hook-reg"); ap_hook_post_config(avap_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_create_request(avap_preset_request, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_handler(avap_get_response, NULL , NULL, APR_HOOK_REALLY_FIRST); - ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: post-hook-reg"); } --- 184,190 ---- *************** *** 197,200 **** --- 196,201 ---- "To enable/disable use: AVAProtocol <on/off>"), // FIXME: following opts should be limited to global + AP_INIT_TAKE12("AVAPPrealloc", set_prealloc_protocols, NULL, RSRC_CONF, + "Set Protocoll preallocation: AVAPPrealloc avap[,daap]"), AP_INIT_TAKE1("AVAPHostname", set_avap_servername, NULL, RSRC_CONF, "Set Hostname: AVAPHostname <Name>"), Index: protocol.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/protocol.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** protocol.c 13 Jan 2005 16:19:04 -0000 1.7 --- protocol.c 14 Jan 2005 19:13:16 -0000 1.8 *************** *** 43,46 **** --- 43,52 ---- /** + * set audio db, song playlist and song playlist to null + * !!!: this has to be done before database scan and prot. init + */ + void preset_protocols(); + + /** * initialize AVAP protocol datablocks */ *************** *** 109,112 **** --- 115,121 ---- int init_protocols(apr_pool_t *p, avap_conf_rec *conf) { + preset_protocols(); + db_adbs_update(p, conf); + if((conf->prealloc & 0x0F) == 0x0F) if(init_AVAP_protocol(p, conf) != 0) return -1; Index: protocol.h =================================================================== RCS file: /cvsroot/ida/mod_avap/src/protocol.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** protocol.h 13 Jan 2005 16:19:04 -0000 1.5 --- protocol.h 14 Jan 2005 19:13:16 -0000 1.6 *************** *** 105,115 **** /** - * set audio db, song playlist and song playlist to null - * !!!: this has to be done before database scan and prot. init - */ - void preset_protocols(); - - - /** * initialize protocol datablocks */ --- 105,108 ---- Index: avap-cmds.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/avap-cmds.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** avap-cmds.c 16 Jul 2004 18:56:45 -0000 1.5 --- avap-cmds.c 14 Jan 2005 19:13:15 -0000 1.6 *************** *** 27,30 **** --- 27,31 ---- #include "avap.h" + #include "protocol.h" #include "avap-cmds.h" *************** *** 42,45 **** --- 43,47 ---- conf->avap_on = -1; + conf->prealloc = PREALLOC_DAAP | PREALLOC_AVAP; // set some defaults *************** *** 52,56 **** conf->databasehost = NULL; ! conf->sql_port = -1; // use default port return (void*) conf; --- 54,58 ---- conf->databasehost = NULL; ! conf->sql_port = 0; // use default port return (void*) conf; *************** *** 74,81 **** // TODO: setting multiple database needs another post // config hook for virtual base ! ! CfgMergeString(databaseuser); ! CfgMergeString(databasehost); ! CfgMergeInt(sql_port); merge->servername = add->servername; --- 76,82 ---- // TODO: setting multiple database needs another post // config hook for virtual base ! // CfgMergeString(databaseuser); ! // CfgMergeString(databasehost); ! // CfgMergeShort(sql_port); merge->servername = add->servername; *************** *** 83,86 **** --- 84,88 ---- merge->video_dbname = add->video_dbname; merge->databasename = add->databasename; + merge->databaseuser = add->databaseuser; return merge; *************** *** 102,105 **** --- 104,126 ---- } + const char* set_prealloc_protocols(cmd_parms *cmd, void *dummy, const char *arg) + { + server_rec *s = cmd->server; + avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); + + const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE|NOT_IN_LIMIT); + if(err) { + return err; + } + + conf->prealloc = 0; + if(strstr(arg, "avap")) + conf->prealloc |= PREALLOC_AVAP; + if(strstr(arg, "daap")) + conf->prealloc |= PREALLOC_DAAP; + + return NULL; + } + const char* set_avap_servername(cmd_parms *cmd, void *dummy, const char *arg) { *************** *** 107,111 **** avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE|NOT_IN_LIMIT); ! if (err) { return err; } --- 128,132 ---- avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE|NOT_IN_LIMIT); ! if(err) { return err; } *************** *** 182,191 **** const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE|NOT_IN_LIMIT); ! if (err) { return err; } - conf->databaseuser = apr_pstrdup(cmd->pool, arg); - return NULL; } --- 203,210 ---- const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE|NOT_IN_LIMIT); ! if(err) { return err; } conf->databaseuser = apr_pstrdup(cmd->pool, arg); return NULL; } |
From: Alexander B. <ale...@us...> - 2005-01-13 16:19:38
|
Update of /cvsroot/ida/mod_avap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30201 Modified Files: INSTALL Makefile.in aclocal.m4 configure Log Message: - added some more avap stuff Index: aclocal.m4 =================================================================== RCS file: /cvsroot/ida/mod_avap/aclocal.m4,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** aclocal.m4 13 Jul 2004 14:22:03 -0000 1.2 --- aclocal.m4 13 Jan 2005 16:19:01 -0000 1.3 *************** *** 1,14 **** ! # aclocal.m4 generated automatically by aclocal 1.5 ! # Copyright 1996, 1997, 1998, 1999, 2000, 2001 ! # Free Software Foundation, Inc. ! # This file 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 [...9224 lines suppressed...] - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done - done - SED=$lt_cv_path_SED - ]) - AC_MSG_RESULT([$SED]) - ]) - --- 3621,3622 ---- Index: Makefile.in =================================================================== RCS file: /cvsroot/ida/mod_avap/Makefile.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.in 13 Jul 2004 14:22:02 -0000 1.2 --- Makefile.in 13 Jan 2005 16:19:01 -0000 1.3 *************** *** 1,6 **** ! # Makefile.in generated automatically by automake 1.5 from Makefile.am. ! # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 ! # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, --- 1,5 ---- ! # Makefile.in generated automatically by automake 1.4-p4 from Makefile.am ! # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, *************** *** 12,16 **** # PARTICULAR PURPOSE. - @SET_MAKE@ SHELL = @SHELL@ --- 11,14 ---- *************** *** 34,40 **** --- 32,42 ---- includedir = @includedir@ oldincludedir = /usr/include + + DESTDIR = + pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ + top_builddir = . *************** *** 45,53 **** INSTALL = @INSTALL@ ! INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ - INSTALL_HEADER = $(INSTALL_DATA) transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : --- 47,55 ---- INSTALL = @INSTALL@ ! INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ + NORMAL_INSTALL = : PRE_INSTALL = : *************** *** 58,136 **** host_alias = @host_alias@ host_triplet = @host@ - AMTAR = @AMTAR@ - AR = @AR@ AS = @AS@ - AWK = @AWK@ CC = @CC@ - CXX = @CXX@ - CXXCPP = @CXXCPP@ - DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ ECHO = @ECHO@ - EGREP = @EGREP@ EXEEXT = @EXEEXT@ - F77 = @F77@ - GCJ = @GCJ@ - GCJFLAGS = @GCJFLAGS@ - INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ RANLIB = @RANLIB@ - RC = @RC@ STRIP = @STRIP@ VERSION = @VERSION@ - am__include = @am__include@ - am__quote = @am__quote@ apache_dir = @apache_dir@ - install_sh = @install_sh@ SUBDIRS = src - subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h ! CONFIG_CLEAN_FILES = ! DIST_SOURCES = - RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ - uninstall-info-recursive all-recursive install-data-recursive \ - install-exec-recursive installdirs-recursive install-recursive \ - uninstall-recursive check-recursive installcheck-recursive - DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \ - Makefile.am Makefile.in NEWS TODO aclocal.m4 config.guess \ - config.h.in config.sub configure configure.in depcomp \ - install-sh ltmain.sh missing mkinstalldirs - DIST_SUBDIRS = $(SUBDIRS) - all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive ! .SUFFIXES: ! mostlyclean-libtool: ! -rm -f *.lo ! clean-libtool: ! -rm -rf .libs _libs ! distclean-libtool: ! -rm -f libtool ! $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) ! cd $(top_srcdir) && \ ! $(AUTOMAKE) --gnu Makefile ! Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status ! cd $(top_builddir) && \ ! CONFIG_HEADERS= CONFIG_LINKS= \ ! CONFIG_FILES=$@ $(SHELL) ./config.status ! $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck ! $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) - $(ACLOCAL_M4): configure.in - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h @if test ! -f $@; then \ --- 60,111 ---- host_alias = @host_alias@ host_triplet = @host@ AS = @AS@ CC = @CC@ DLLTOOL = @DLLTOOL@ ECHO = @ECHO@ EXEEXT = @EXEEXT@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ + MAKEINFO = @MAKEINFO@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ RANLIB = @RANLIB@ STRIP = @STRIP@ VERSION = @VERSION@ apache_dir = @apache_dir@ SUBDIRS = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h ! CONFIG_CLEAN_FILES = ! DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \ ! Makefile.am Makefile.in NEWS TODO aclocal.m4 config.guess config.h.in \ ! config.sub configure configure.in install-sh ltmain.sh missing \ ! mkinstalldirs ! DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) ! TAR = tar ! GZIP_ENV = --best ! all: all-redirect ! .SUFFIXES: ! $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) ! cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile ! Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status ! cd $(top_builddir) \ ! && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status ! $(ACLOCAL_M4): configure.in ! cd $(srcdir) && $(ACLOCAL) ! config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck ! $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) config.h: stamp-h @if test ! -f $@; then \ *************** *** 139,162 **** else :; fi stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h stamp-hT - @echo timestamp > stamp-hT 2> /dev/null cd $(top_builddir) \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ $(SHELL) ./config.status ! @mv stamp-hT stamp-h ! $(srcdir)/config.h.in: $(srcdir)/./stamp-h.in @if test ! -f $@; then \ ! rm -f $(srcdir)/./stamp-h.in; \ ! $(MAKE) $(srcdir)/./stamp-h.in; \ else :; fi ! $(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) ! @rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT ! @echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null cd $(top_srcdir) && $(AUTOHEADER) ! @mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in distclean-hdr: -rm -f config.h ! uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd --- 114,138 ---- else :; fi stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ $(SHELL) ./config.status ! @echo timestamp > stamp-h 2> /dev/null ! $(srcdir)/config.h.in: $(srcdir)/stamp-h.in @if test ! -f $@; then \ ! rm -f $(srcdir)/stamp-h.in; \ ! $(MAKE) $(srcdir)/stamp-h.in; \ else :; fi ! $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOHEADER) ! @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null ! ! mostlyclean-hdr: ! ! clean-hdr: distclean-hdr: -rm -f config.h ! ! maintainer-clean-hdr: # This directory's subdirectories are mostly independent; you can cd *************** *** 166,170 **** # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. ! $(RECURSIVE_TARGETS): @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ --- 142,151 ---- # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. ! ! @SET_MAKE@ ! ! all-recursive install-data-recursive install-exec-recursive \ ! installdirs-recursive install-recursive uninstall-recursive \ ! check-recursive installcheck-recursive info-recursive dvi-recursive: @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ *************** *** 189,202 **** @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ ! case "$@" in \ ! distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ ! *) list='$(SUBDIRS)' ;; \ ! esac; \ ! rev=''; for subdir in $$list; do \ ! if test "$$subdir" = "."; then :; else \ ! rev="$$subdir $$rev"; \ ! fi; \ done; \ ! rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ --- 170,178 ---- @set fnord $(MAKEFLAGS); amf=$$2; \ dot_seen=no; \ ! rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ ! rev="$$subdir $$rev"; \ ! test "$$subdir" = "." && dot_seen=yes; \ done; \ ! test "$$dot_seen" = "no" && rev=". $$rev"; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ *************** *** 217,279 **** tags: TAGS ! ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) ! list='$(SOURCES) $(HEADERS) $(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 $(LISP) ! TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ ! $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ ! if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ ! fi; \ done; \ ! list='$(SOURCES) $(HEADERS) $(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 "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ ! || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) ! GTAGS: ! here=`CDPATH=: && cd $(top_builddir) && pwd` \ ! && cd $(top_srcdir) \ ! && gtags -i $(GTAGS_ARGS) $$here distclean-tags: ! -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH ! DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - top_distdir = . - # Avoid unsightly `./'. distdir = $(PACKAGE)-$(VERSION) ! GZIP_ENV = --best ! distdir: $(DISTFILES) ! -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) mkdir $(distdir) @for file in $(DISTFILES); do \ ! if test -f $$file; then d=.; else d=$(srcdir); fi; \ ! dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ ! if test "$$dir" != "$$file" && test "$$dir" != "."; then \ ! $(mkinstalldirs) "$(distdir)/$$dir"; \ ! fi; \ if test -d $$d/$$file; then \ ! cp -pR $$d/$$file $(distdir) \ ! || exit 1; \ else \ test -f $(distdir)/$$file \ ! || cp -p $$d/$$file $(distdir)/$$file \ ! || exit 1; \ fi; \ done --- 193,274 ---- tags: TAGS ! ID: $(HEADERS) $(SOURCES) $(LISP) ! list='$(SOURCES) $(HEADERS)'; \ ! unique=`for i in $$list; do echo $$i; done | \ ! awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ ! here=`pwd` && cd $(srcdir) \ ! && mkid -f$$here/ID $$unique $(LISP) ! TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ ! if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ ! fi; \ done; \ ! list='$(SOURCES) $(HEADERS)'; \ ! unique=`for i in $$list; do echo $$i; done | \ ! awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ ! || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) ! mostlyclean-tags: ! ! clean-tags: distclean-tags: ! -rm -f TAGS ID ! maintainer-clean-tags: distdir = $(PACKAGE)-$(VERSION) + top_distdir = $(distdir) ! # This target untars the dist file and tries a VPATH configuration. Then ! # it guarantees that the distribution is self-contained by making another ! # tarfile. ! distcheck: dist ! -rm -rf $(distdir) ! GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz ! mkdir $(distdir)/=build ! mkdir $(distdir)/=inst ! dc_install_base=`cd $(distdir)/=inst && pwd`; \ ! cd $(distdir)/=build \ ! && ../configure --srcdir=.. --prefix=$$dc_install_base \ ! && $(MAKE) $(AM_MAKEFLAGS) \ ! && $(MAKE) $(AM_MAKEFLAGS) dvi \ ! && $(MAKE) $(AM_MAKEFLAGS) check \ ! && $(MAKE) $(AM_MAKEFLAGS) install \ ! && $(MAKE) $(AM_MAKEFLAGS) installcheck \ ! && $(MAKE) $(AM_MAKEFLAGS) dist ! -rm -rf $(distdir) ! @banner="$(distdir).tar.gz is ready for distribution"; \ ! dashes=`echo "$$banner" | sed s/./=/g`; \ ! echo "$$dashes"; \ ! echo "$$banner"; \ ! echo "$$dashes" ! dist: distdir ! -chmod -R a+r $(distdir) ! GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ! -rm -rf $(distdir) ! dist-all: distdir ! -chmod -R a+r $(distdir) ! GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ! -rm -rf $(distdir) distdir: $(DISTFILES) ! -rm -rf $(distdir) mkdir $(distdir) + -chmod 777 $(distdir) @for file in $(DISTFILES); do \ ! d=$(srcdir); \ if test -d $$d/$$file; then \ ! cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ ! || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ ! || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done *************** *** 283,353 **** || mkdir $(distdir)/$$subdir \ || exit 1; \ ! (cd $$subdir && \ ! $(MAKE) $(AM_MAKEFLAGS) \ ! top_distdir="$(top_distdir)" \ ! distdir=../$(distdir)/$$subdir \ ! distdir) \ || exit 1; \ fi; \ done ! -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ ! || chmod -R a+r $(distdir) ! dist: distdir ! $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz ! -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) ! ! # This target untars the dist file and tries a VPATH configuration. Then ! # it guarantees that the distribution is self-contained by making another ! # tarfile. ! distcheck: dist ! -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) ! GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ! chmod -R a-w $(distdir); chmod a+w $(distdir) ! mkdir $(distdir)/=build ! mkdir $(distdir)/=inst ! chmod a-w $(distdir) ! dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \ ! && cd $(distdir)/=build \ ! && ../configure --srcdir=.. --prefix=$$dc_install_base \ ! && $(MAKE) $(AM_MAKEFLAGS) \ ! && $(MAKE) $(AM_MAKEFLAGS) dvi \ ! && $(MAKE) $(AM_MAKEFLAGS) check \ ! && $(MAKE) $(AM_MAKEFLAGS) install \ ! && $(MAKE) $(AM_MAKEFLAGS) installcheck \ ! && $(MAKE) $(AM_MAKEFLAGS) uninstall \ ! && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ ! || (echo "Error: files left after uninstall" 1>&2; \ ! exit 1) ) \ ! && $(MAKE) $(AM_MAKEFLAGS) dist \ ! && $(MAKE) $(AM_MAKEFLAGS) distclean \ ! && rm -f $(distdir).tar.gz \ ! && (test `find . -type f -print | wc -l` -eq 0 \ ! || (echo "Error: files left after distclean" 1>&2; \ ! exit 1) ) ! -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) ! @echo "$(distdir).tar.gz is ready for distribution" | \ ! sed 'h;s/./=/g;p;x;p;x' check-am: all-am check: check-recursive ! all-am: Makefile config.h ! installdirs: installdirs-recursive ! installdirs-am: ! install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive - uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am ! ! installcheck: installcheck-recursive install-strip: ! $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ ! `test -z '$(STRIP)' || \ ! echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: --- 278,316 ---- || mkdir $(distdir)/$$subdir \ || exit 1; \ ! chmod 777 $(distdir)/$$subdir; \ ! (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ || exit 1; \ fi; \ done ! info-am: ! info: info-recursive ! dvi-am: ! dvi: dvi-recursive check-am: all-am check: check-recursive ! installcheck-am: ! installcheck: installcheck-recursive ! all-recursive-am: config.h ! $(MAKE) $(AM_MAKEFLAGS) all-recursive ! install-exec-am: install-exec: install-exec-recursive + + install-data-am: install-data: install-data-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am ! install: install-recursive ! uninstall-am: ! uninstall: uninstall-recursive ! all-am: Makefile config.h ! all-redirect: all-recursive-am install-strip: ! $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install ! installdirs: installdirs-recursive ! installdirs-am: ! ! mostlyclean-generic: *************** *** 355,420 **** distclean-generic: ! -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* 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-recursive ! ! clean-am: clean-generic clean-libtool mostlyclean-am ! ! dist-all: distdir ! $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz ! -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) ! distclean: distclean-recursive ! -rm -f config.status config.cache config.log ! distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \ ! distclean-tags ! ! dvi: dvi-recursive ! ! dvi-am: ! ! info: info-recursive ! info-am: ! install-data-am: ! install-exec-am: ! install-info: install-info-recursive ! install-man: ! installcheck-am: maintainer-clean: maintainer-clean-recursive ! maintainer-clean-am: distclean-am maintainer-clean-generic ! ! mostlyclean: mostlyclean-recursive ! ! mostlyclean-am: mostlyclean-generic mostlyclean-libtool ! ! uninstall-am: uninstall-info-am ! ! uninstall-info: uninstall-info-recursive - .PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ - clean-generic clean-libtool clean-recursive dist dist-all \ - distcheck distclean distclean-generic distclean-hdr \ - distclean-libtool distclean-recursive distclean-tags distdir \ - dvi dvi-am dvi-recursive info info-am info-recursive install \ - install-am install-data install-data-am install-data-recursive \ - install-exec install-exec-am install-exec-recursive \ - install-info install-info-am install-info-recursive install-man \ - install-recursive install-strip installcheck installcheck-am \ - installdirs installdirs-am installdirs-recursive \ - maintainer-clean maintainer-clean-generic \ - maintainer-clean-recursive mostlyclean mostlyclean-generic \ - mostlyclean-libtool mostlyclean-recursive tags tags-recursive \ - uninstall uninstall-am uninstall-info-am \ - uninstall-info-recursive uninstall-recursive # Tell versions [3.59,3.63) of GNU make to not export all variables. --- 318,360 ---- distclean-generic: ! -rm -f Makefile $(CONFIG_CLEAN_FILES) ! -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: ! mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic ! mostlyclean: mostlyclean-recursive ! clean-am: clean-hdr clean-tags clean-generic mostlyclean-am ! clean: clean-recursive ! distclean-am: distclean-hdr distclean-tags distclean-generic clean-am ! -rm -f libtool ! distclean: distclean-recursive ! -rm -f config.status ! maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \ ! maintainer-clean-generic distclean-am ! @echo "This command is intended for maintainers to use;" ! @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-recursive + -rm -f config.status ! .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ ! install-data-recursive uninstall-data-recursive install-exec-recursive \ ! uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ ! all-recursive check-recursive installcheck-recursive info-recursive \ ! dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ ! maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ ! distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ ! dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ ! install-exec-am install-exec install-data-am install-data install-am \ ! install uninstall-am uninstall all-redirect all-am all installdirs-am \ ! installdirs mostlyclean-generic distclean-generic clean-generic \ ! maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. Index: configure =================================================================== RCS file: /cvsroot/ida/mod_avap/configure,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configure 13 Jul 2004 14:22:03 -0000 1.2 --- configure 13 Jan 2005 16:19:02 -0000 1.3 *************** *** 1,245 **** #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.59. # - # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. - ## --------------------- ## - ## M4sh Initialization. ## - ## --------------------- ## [...24745 lines suppressed...] fi ! rm -f $ac_file ! mv conftest.h $ac_file fi ! fi; done + EOF + cat >> $CONFIG_STATUS <<EOF ! EOF ! cat >> $CONFIG_STATUS <<\EOF ! test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ! exit 0 ! EOF chmod +x $CONFIG_STATUS ! rm -fr confdefs* $ac_clean_files ! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 Index: INSTALL =================================================================== RCS file: /cvsroot/ida/mod_avap/INSTALL,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** INSTALL 23 Jul 2004 19:30:10 -0000 1.3 --- INSTALL 13 Jan 2005 16:19:01 -0000 1.4 *************** *** 5,9 **** - Apache >= 2.0 - Postgresql - - libid3tag Compilation & Installation: --- 5,8 ---- *************** *** 67,69 **** The only importent thing is to replace any previously defined server-info stuff ! by something else. \ No newline at end of file --- 66,68 ---- The only importent thing is to replace any previously defined server-info stuff ! by something else. |
From: Alexander B. <ale...@us...> - 2005-01-13 16:19:22
|
Update of /cvsroot/ida/mod_avap/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30201/src Modified Files: Makefile.am avap-items.h avap.h database.c database.h mod_avap.c protocol.c protocol.h Log Message: - added some more avap stuff Index: database.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/database.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** database.c 28 Jul 2004 19:57:32 -0000 1.7 --- database.c 13 Jan 2005 16:19:03 -0000 1.8 *************** *** 24,203 **** */ #define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> - #include <stdbool.h> #include <string.h> ! #include <libpq-fe.h> #include <netinet/in.h> [...1328 lines suppressed...] ! void db_vdbm_update() { PGconn *conn; PGresult *result; ! conn = db_connect(avdb_conn_string); result = PQexec(conn, "SELECT * FROM movies"); --- 585,594 ---- } ! void db_vdbm_update(apr_pool_t *p, avap_conf_rec *config) { PGconn *conn; PGresult *result; ! conn = db_connect(p, avdb_crequest); result = PQexec(conn, "SELECT * FROM movies"); Index: avap-items.h =================================================================== RCS file: /cvsroot/ida/mod_avap/src/avap-items.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** avap-items.h 9 Jul 2004 18:55:09 -0000 1.1.1.1 --- avap-items.h 13 Jan 2005 16:19:03 -0000 1.2 *************** *** 29,46 **** //---- AVAP datatypes ------------------------------------------------- ! #define TYPE_BUFFER 0 ! #define TYPE_U8 1 ! #define TYPE_U16 3 ! #define TYPE_U32 5 ! #define TYPE_U64 7 ! #define TYPE_STRING 9 ! #define TYPE_TIME 10 ! #define TYPE_VERSION 11 ! #define TYPE_TAGGED 12 ! //---- AVAP content codes ------------------------------------------------- - #define AVAP_CONTENTCODESNUMBER 0 #define AVAP_BASEPLAYLIST 1 --- 29,55 ---- //---- AVAP datatypes ------------------------------------------------- + #define TYPE_BUFFER 0 + #define TYPE_U8 1 + #define TYPE_U16 3 + #define TYPE_U32 5 + #define TYPE_U64 7 + #define TYPE_STRING 9 + #define TYPE_TIME 10 + #define TYPE_VERSION 11 + #define TYPE_TAGGED 12 ! //---- HTTP content types ------------------------------------------------- ! #define NO_CONTENT -1 ! #define APP_X_DMAP_TAGGED 0 ! #define AUDIO_MP3 1 ! #define AUDIO_AAC 2 ! #define AUDIO_WAV 3 ! #define AUDIO_AIFF 4 ! #define AUDIO_SD2 5 ! #define VIDEO_MPG 200 ! #define VIDEO_AVI 201 ! #define VIDEO_VDR 202 //---- AVAP content codes ------------------------------------------------- #define AVAP_CONTENTCODESNUMBER 0 #define AVAP_BASEPLAYLIST 1 *************** *** 130,224 **** #define AVAP_NUMBER_OF_ELEMENTS 84 ! static const struct { ! int type; ! unsigned char tag[4]; ! unsigned char * name; ! } tags[] = { ! { 9, "mcnm", "dmap.contentcodesnumber" }, ! { 1, "abpl", "daap.baseplaylist" }, ! { 1, "aeSP", "com.apple.itunes.smart-playlist" }, ! { 1, "asco", "daap.songcompilation" }, ! { 1, "asdb", "daap.songdisabled" }, ! { 1, "asdk", "daap.songdatakind" }, ! { 1, "asrv", "daap.songrelativevolume" }, ! { 1, "asur", "daap.songuserrating" }, ! { 1, "mikd", "dmap.itemkind" }, ! { 1, "msal", "dmap.supportsautologout" }, ! { 1, "msau", "dmap.authenticationmethod" }, ! { 1, "msbr", "dmap.supportsbrowse" }, ! { 1, "msex", "dmap.supportsextensions" }, ! { 1, "msix", "dmap.supportsindex" }, ! { 1, "mslr", "dmap.loginrequired" }, ! { 1, "mspi", "dmap.supportspersistentids" }, ! { 1, "msqy", "dmap.supportsquery" }, ! { 1, "msrs", "dmap.supportsresolve" }, ! { 1, "msup", "dmap.supportsupdate" }, ! { 1, "muty", "dmap.updatetype" }, ! { 3, "asbr", "daap.songbitrate" }, ! { 3, "asbt", "daap.songbeatsperminute" }, ! { 3, "asdc", "daap.songdisccount" }, ! { 3, "asdn", "daap.songdiscnumber" }, ! { 3, "astc", "daap.songtrackcount" }, ! { 3, "astn", "daap.songtracknumber" }, ! { 3, "asyr", "daap.songyear" }, ! { 3, "mcty", "dmap.contentcodestype" }, ! { 5, "aeNV", "com.apple.itunes.norm-volume" }, ! { 5, "assp", "daap.songstoptime" }, ! { 5, "assr", "daap.songsamplerate" }, ! { 5, "asst", "daap.songstarttime" }, ! { 5, "assz", "daap.songsize" }, ! { 5, "astm", "daap.songtime" }, ! { 5, "mctc", "dmap.containercount" }, ! { 5, "mcti", "dmap.containeritemid" }, ! { 5, "miid", "dmap.itemid" }, ! { 5, "mimc", "dmap.itemcount" }, ! { 5, "mlid", "dmap.sessionid" }, ! { 5, "mpco", "dmap.parentcontainerid" }, ! { 5, "mrco", "dmap.returnedcount" }, ! { 5, "msdc", "dmap.databasescount" }, ! { 5, "mstm", "dmap.timeoutinterval" }, ! { 5, "mstt", "dmap.status" }, ! { 5, "mtco", "dmap.specifiedtotalcount" }, ! { 5, "musr", "dmap.serverrevision" }, ! { 7, "mper", "dmap.persistentid" }, ! { 9, "asal", "daap.songalbum" }, ! { 9, "asar", "daap.songartist" }, ! { 9, "ascm", "daap.songcomment" }, ! { 9, "ascp", "daap.songcomposer" }, ! { 9, "asdt", "daap.songdescription" }, ! { 9, "aseq", "daap.songeqpreset" }, ! { 9, "asfm", "daap.songformat" }, ! { 9, "asgn", "daap.songgenre" }, ! { 9, "asul", "daap.songdataurl" }, ! { 9, "mcna", "dmap.contentcodesname" }, ! { 9, "minm", "dmap.itemname" }, ! { 9, "msts", "dmap.statusstring" }, ! { 10, "asda", "daap.songdateadded" }, ! { 10, "asdm", "daap.songdatemodified" }, ! { 11, "apro", "daap.protocolversion" }, ! { 11, "mpro", "dmap.protocolversion" }, ! { 12, "abal", "daap.browsealbumlisting" }, ! { 12, "abar", "daap.browseartistlisting" }, ! { 12, "abcp", "daap.browsecomposerlisting" }, ! { 12, "abgn", "daap.browsegenrelisting" }, ! { 12, "abro", "daap.databasebrowse" }, ! { 12, "adbs", "daap.databasesongs" }, ! { 12, "aply", "daap.databaseplaylists" }, ! { 12, "apso", "daap.playlistsongs" }, ! { 12, "arif", "daap.resolveinfo" }, ! { 12, "arsv", "daap.resolve" }, ! { 12, "avdb", "daap.serverdatabases" }, ! { 12, "mbcl", "dmap.bag" }, ! { 12, "mccr", "dmap.contentcodesresponse" }, ! { 12, "mcon", "dmap.container" }, ! { 12, "mdcl", "dmap.dictionary" }, ! { 12, "mlcl", "dmap.listing" }, ! { 12, "mlit", "dmap.listingitem" }, ! { 12, "mlog", "dmap.loginresponse" }, ! { 12, "msrv", "dmap.serverinforesponse" }, ! { 12, "mudl", "dmap.deletedidlisting" }, ! { 12, "mupd", "dmap.updateresponse" }, ! }; #endif // __AVAP_ITEMS_H_ --- 139,149 ---- #define AVAP_NUMBER_OF_ELEMENTS 84 ! typedef struct Tags { ! int type; ! unsigned char tag[4]; ! unsigned char * name; ! } Tags; + extern Tags tags[]; #endif // __AVAP_ITEMS_H_ Index: mod_avap.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/mod_avap.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mod_avap.c 28 Jul 2004 19:57:32 -0000 1.10 --- mod_avap.c 13 Jan 2005 16:19:03 -0000 1.11 *************** *** 24,33 **** */ ! #include "httpd.h" ! #include "http_config.h" ! #include "http_request.h" ! #include "http_protocol.h" #include "http_core.h" - #include "http_log.h" #include <string.h> --- 24,30 ---- */ ! #include "httpd.h" ! #include "http_protocol.h" #include "http_core.h" #include <string.h> *************** *** 44,52 **** int avap_init(apr_pool_t *p, apr_pool_t *ptemp, apr_pool_t *plog, server_rec *s) { avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); ! // initialize database and protocol ! if(init_database(conf) == -1) return !OK; ! if(init_protocol(conf) == -1) return !OK; return OK; --- 41,50 ---- int avap_init(apr_pool_t *p, apr_pool_t *ptemp, apr_pool_t *plog, server_rec *s) { + ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: pre-config"); avap_conf_rec *conf = (avap_conf_rec *)ap_get_module_config(s->module_config, &avap_module); ! ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: post-config"); // initialize database and protocol ! if(db_check_relations() == -1) return !OK; ! if(init_protocols(p, conf) == -1) return !OK; return OK; *************** *** 83,96 **** return DECLINED; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: request: %s", r->the_request); if(!strcmp(uri, "/server-info")) { ! request_type = AVAP_MSRV; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: server-info requested"); } else if(!strncmp(uri, "/databases", 10)) { if(uri[10] == 0) { ! request_type = AVAP_AVDB; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: audio/video database list requested"); } else if(uri[10] == '/') { --- 81,94 ---- return DECLINED; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: request: %s", r->the_request); if(!strcmp(uri, "/server-info")) { ! request_type = DAAP_MSRV; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: server-info requested"); } else if(!strncmp(uri, "/databases", 10)) { if(uri[10] == 0) { ! request_type = DAAP_AVDB; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: audio/video database list requested"); } else if(uri[10] == '/') { *************** *** 100,104 **** token = strstr(token, "/"); if(!token) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: invalid databases request : %s", uri); return DECLINED; } --- 98,102 ---- token = strstr(token, "/"); if(!token) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: invalid databases request : %s", uri); return DECLINED; } *************** *** 106,117 **** if(itemid == 1) { if(!strncmp(token, "/items", 6)) { ! request_type = AVAP_ADBS; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: adbs requested"); } else if(!strncmp(token, "/containers", 11)) { token = &token[11]; if(token[0] == 0) { ! request_type = AVAP_SPLY; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: sply requested"); } else { --- 104,115 ---- if(itemid == 1) { if(!strncmp(token, "/items", 6)) { ! request_type = DAAP_ADBS; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: adbs requested"); } else if(!strncmp(token, "/containers", 11)) { token = &token[11]; if(token[0] == 0) { ! request_type = DAAP_SPLY; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: sply requested"); } else { *************** *** 122,138 **** token = strstr(token, "/"); if(!token) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: invalid playlist request: %s", uri); return DECLINED; } if(itemid == 1 && !strncmp(token, "/items", 6)) { ! request_type = AVAP_APSO; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: apso requested"); } else if(itemid > 1) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: sorry, playlists not implemented yet :("); return DECLINED; } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: invalid playlist id: %s", uri); return DECLINED; } --- 120,136 ---- token = strstr(token, "/"); if(!token) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: invalid playlist request: %s", uri); return DECLINED; } if(itemid == 1 && !strncmp(token, "/items", 6)) { ! request_type = DAAP_APSO; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: apso requested"); } else if(itemid > 1) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: sorry, playlists not implemented yet :("); return DECLINED; } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: invalid playlist id: %s", uri); return DECLINED; } *************** *** 141,171 **** } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: requested database with unknown id <%d>", itemid); return DECLINED; } } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: invalid databases request : %s", uri); return DECLINED; } } else if(!strcmp(uri, "/login")) { ! request_type = AVAP_MLOG; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: login requested"); } else if(!strcmp(uri, "/update")) { ! request_type = AVAP_MUPD; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: update requested"); } else if(!strcmp(uri, "/content-codes")) { ! request_type = AVAP_MCCR; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: content-codes requested"); } else if(!strcmp(uri, "/logout")) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP logout requested"); return OK; } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP: declined request: %s", r->uri); return DECLINED; } --- 139,169 ---- } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: requested database with unknown id <%d>", itemid); return DECLINED; } } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: invalid databases request : %s", uri); return DECLINED; } } else if(!strcmp(uri, "/login")) { ! request_type = DAAP_MLOG; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: login requested"); } else if(!strcmp(uri, "/update")) { ! request_type = DAAP_MUPD; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: update requested"); } else if(!strcmp(uri, "/content-codes")) { ! request_type = DAAP_MCCR; ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: content-codes requested"); } else if(!strcmp(uri, "/logout")) { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP logout requested"); return OK; } else { ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP: declined request: %s", r->uri); return DECLINED; } *************** *** 176,182 **** ap_add_output_filter("DEFLATE", NULL, r, r->connection); ! buffer = get_AVAP_response(r->pool, request_type); ap_rwrite(buffer->content, buffer->size, r); ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "AVAP dmap content of length: %d written", buffer->size); return OK; --- 174,180 ---- ap_add_output_filter("DEFLATE", NULL, r, r->connection); ! buffer = get_response(r->pool, request_type); ap_rwrite(buffer->content, buffer->size, r); ! ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "DAAP dmap content of length: %d written", buffer->size); return OK; *************** *** 185,191 **** --- 183,191 ---- static void avap_register_hooks(apr_pool_t *p) { + ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: pre-hook-reg"); ap_hook_post_config(avap_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_create_request(avap_preset_request, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_handler(avap_get_response, NULL , NULL, APR_HOOK_REALLY_FIRST); + ap_log_perror(APLOG_MARK, APLOG_INFO, 0, p, "AVAP: post-hook-reg"); } Index: protocol.c =================================================================== RCS file: /cvsroot/ida/mod_avap/src/protocol.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** protocol.c 26 Jul 2004 15:46:25 -0000 1.6 --- protocol.c 13 Jan 2005 16:19:04 -0000 1.7 *************** *** 30,35 **** #include <string.h> #include <stdio.h> #include <stdbool.h> - #include "apr_strings.h" #include "database.h" --- 30,35 ---- #include <string.h> #include <stdio.h> + #include <pthread.h> [...1197 lines suppressed...] --- 775,793 ---- } ! char *add_DAAP_content(char *target, int tag, int size, char *content) ! { ! int i = 0; ! target = add_DAAP_tag(target, tags[tag].tag); ! target = add_length(target, size); ! while(i<size) { ! *target = content[i]; ! target++; ! i++; ! } ! ! return target; ! } ! ! int calc_DAAP_dict_size(int tname_size[]) { int i = 0; Index: database.h =================================================================== RCS file: /cvsroot/ida/mod_avap/src/database.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** database.h 15 Jul 2004 23:39:01 -0000 1.4 --- database.h 13 Jan 2005 16:19:03 -0000 1.5 *************** *** 27,130 **** #define __DATABASE_H_ #include "avap.h" /** ! * structure for holding information about Audiofiles */ ! typedef struct AudioFile_TAG { ! ! char *path; ! char *fname; ! ! char *title; ! char *artist; ! char *composer; ! char *album; ! char *genre; ! char *description; ! char *comment; ! ! char *format; ! int bitrate; ! int samplerate; ! int length; ! int size;; ! int year; ! ! int track; ! int total_tracks; ! ! int ndiscs; ! int disc; ! ! int mtime; // time of last modification ! int atime; // time of last access ! int ctime; // time of last change ! ! int userrating; ! ! unsigned char got_id3; ! unsigned int id; ! ! } AudioFile; /** ! * structure for holding info about Moviefiles */ ! typedef struct MovieFile_TAG { ! ! char *path; ! char *fname; ! ! char *title; ! char *comment; ! ! unsigned int id; ! ! } MovieFile; ! ! /** ! * initialy check for tables and create them if needed ! * alternat. get items from existing database */ ! int init_database(avap_conf_rec *c); /** ! * add a single song into database */ ! int db_add_song(AudioFile *file); /** ! * add a single movie file into database */ ! int db_add_movie(MovieFile *file); /** * update audio database songs listing */ ! void db_adbs_update(); /** * update video database movies listing */ ! void db_vdbm_update(); ! ! /** ! * get location of file spec. by id ! */ ! char* db_get_song_path(int id); ! /** ! * get location of file spec. by id ! */ ! char* db_get_movie_path(int id); ! ! /** ! * get number of songs ! */ ! int db_get_song_count(); ! /** ! * get number of movies ! */ ! int db_get_movie_count(); /** --- 27,68 ---- #define __DATABASE_H_ + #include <stdbool.h> + + #include "protocol.h" + #include "tools.h" #include "avap.h" /** ! * check for database relations */ ! int db_check_relations(apr_pool_t *p, avap_conf_rec *config); /** ! * get location of file spec. by id */ ! _Bool db_get_song_info(apr_pool_t *p, AVAP_Request *request, unsigned int *size, char **path); /** ! * get location of file spec. by id */ ! //char* db_get_movie_path(int id); /** ! * get number of songs */ ! unsigned int db_get_song_count(); /** ! * get number of movies */ ! unsigned int db_get_movie_count(); /** * update audio database songs listing */ ! void db_adbs_update(apr_pool_t *p, avap_conf_rec *config); /** * update video database movies listing */ ! void db_vdbm_update(apr_pool_t *p, avap_conf_rec *config); /** *************** *** 137,139 **** --- 75,79 ---- int db_get_revision(); + void db_free(); + #endif Index: protocol.h =================================================================== RCS file: /cvsroot/ida/mod_avap/src/protocol.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** protocol.h 26 Jul 2004 15:46:25 -0000 1.4 --- protocol.h 13 Jan 2005 16:19:04 -0000 1.5 *************** *** 33,60 **** #include "avap.h" /** ! * AVAP response types */ ! // common ! #define AVAP_MSRV 0 // server info ! #define AVAP_MCCR 1 // content codes ! #define AVAP_MLOG 2 // login ! #define AVAP_MUPD 3 // update ! #define AVAP_AVDB 4 // audio/video databases ! // audio specific ! #define AVAP_ADBS 5 // audio database songs ! #define AVAP_SPLY 6 // song playlists ! #define AVAP_APSO 7 // audio playlist songs ! #define AVAP_SDBS 8 // song database song ! // video specific ! #define AVAP_VDBM 9 // video db movie ! #define AVAP_MPLY 10 // movie playlist ! #define AVAP_VPMO 11 // video playlist movies ! #define AVAP_MDBM 12 // movie databas movie --- 33,77 ---- #include "avap.h" + /** + * Protocol types + */ + #define PROTOCOL_UNKNWON 0 + #define PROTOCOL_AVAP 1 + #define PROTOCOL_DAAP 2 /** ! * prealloc flags */ + #define PREALLOC_AVAP 0x0F + #define PREALLOC_DAAP 0xF0 + #define PREALLOC_NONE 0x00 ! /** ! * Protocol types ! */ ! #define PROTOCOL_UNKNOWN 0 ! #define PROTOCOL_AVAP 1 ! #define PROTOCOL_DAAP 2 ! /** ! * AVAP response types ! */ ! #define AVAP_MSRV 0 ! #define AVAP_AVDB 1 ! #define AVAP_ADBS 2 ! #define DAAP_MSRV 3 ! #define DAAP_MCCR 4 ! #define DAAP_MLOG 5 ! #define DAAP_MUPD 6 ! #define DAAP_AVDB 7 ! #define DAAP_ADBS 8 ! #define DAAP_SPLY 9 ! #define DAAP_APSO 10 ! ! #define AVAP_SDBS 32 ! #define AVAP_MDBM 33 + #define DAAP_SDBS 34 *************** *** 64,76 **** typedef struct AVAP_Request_TAG { ! char *file_path; // path to requested file ! int type; // request type (has to match response from above) ! int session_id; // users session id ! int revision_number; // database revision number ! int database; // selected database ! int itemid; // selected items id ! int start; // start time (client requested partial content) ! int stop; // stop time (client requested partial content) ! int port; // request download port } AVAP_Request; --- 81,92 ---- typedef struct AVAP_Request_TAG { ! char type; // request type (has to match response from above) ! unsigned int session_id; // users session id ! unsigned int revision_number; // database revision number ! char database; // selected database ! unsigned int itemid; // selected items id ! unsigned int start; // start time (client requested partial content) ! unsigned int stop; // stop time (client requested partial content) ! unsigned short port; // request download port } AVAP_Request; *************** *** 89,105 **** /** ! * initialize avap protocol datablocks */ ! int init_protocol(avap_conf_rec *conf); /** * set new song database listing */ ! void set_songlisting(AVAP_Response *adbs_response,AVAP_Response *apso_response); /** * get a specific response */ ! AVAP_Response* get_AVAP_response(apr_pool_t *pool, int type); /** --- 105,147 ---- /** ! * set audio db, song playlist and song playlist to null ! * !!!: this has to be done before database scan and prot. init */ ! void preset_protocols(); ! ! ! /** ! * initialize protocol datablocks ! */ ! int init_protocols(apr_pool_t *p, avap_conf_rec *conf); ! ! /** ! * create AVAP header ! */ ! char* create_AVAP_adbs_header(char *content, int size, int count); ! /** ! * create DAAP header ! */ ! char* create_DAAP_adbs_header(char *content, int size, int count); ! ! /** ! * set data in server info datablock ! */ ! void set_server_info(avap_conf_rec *conf); /** * set new song database listing */ ! void set_AVAP_songlisting(AVAP_Response *adbs_response); ! ! /** ! * set new song database listing ! */ ! void set_DAAP_songlisting(AVAP_Response *adbs_response,AVAP_Response *apso_response); /** * get a specific response */ ! AVAP_Response* get_response(apr_pool_t *pool, int type); /** *************** *** 107,117 **** * session_id is set to new id */ ! AVAP_Response* get_AVAP_login(apr_pool_t *pool, int *session_id); /** * add 4 char wide tag to target * return end of string */ ! char* add_tag(char *target, const char *tag); /** * add length (as integer) to target --- 149,165 ---- * session_id is set to new id */ ! AVAP_Response* get_DAAP_login(apr_pool_t *pool, int *session_id); /** + * add 1 char wide tag to target + * return end of string + */ + char* add_AVAP_tag(char *target, const char *tag); + /** * add 4 char wide tag to target * return end of string */ ! char* add_DAAP_tag(char *target, const char *tag); ! /** * add length (as integer) to target *************** *** 119,152 **** */ char* add_length(char *target, int length); /** * add 4 char wide tag, length and a byte to target * return end of string */ ! char* add_byte(char *target, int tag, char byte); /** * add 4 char wide tag, length and a short (2 byte) to target * return end of string */ ! char* add_short(char *target, int tag, short number); /** * add 4 char wide tag, length and a integer (4 byte) to target * return end of string */ ! char* add_int(char *target, int tag, int number); /** * add 4 char wide tag, length and a long (8 byte) to target * return end of string */ ! char* add_long(char *target, int tag, unsigned long long number); /** * add 4 char wide tag, length and a string (n byte) to target * return end of string */ ! char* add_string(char *target, int tag, char *content); /** * add 4 char wide tag, length and content (ignores NULL) to target * return end of string */ ! char* add_content(char *target, int tag, int size, char *content); #endif --- 167,236 ---- */ char* add_length(char *target, int length); + + /** + * add 1 char wide tag, length and a byte to target + * return end of string + */ + char* add_AVAP_byte(char *target, int tag, char byte); /** * add 4 char wide tag, length and a byte to target * return end of string */ ! char* add_DAAP_byte(char *target, int tag, char byte); ! ! /** ! * add 1 char wide tag, length and a short (2 byte) to target ! * return end of string ! */ ! char* add_AVAP_short(char *target, int tag, short number); /** * add 4 char wide tag, length and a short (2 byte) to target * return end of string */ ! char* add_DAAP_short(char *target, int tag, short number); ! ! /** ! * add 1 char wide tag, length and a integer (4 byte) to target ! * return end of string ! */ ! char* add_AVAP_int(char *target, int tag, int number); /** * add 4 char wide tag, length and a integer (4 byte) to target * return end of string */ ! char* add_DAAP_int(char *target, int tag, int number); ! ! /** ! * add 1 char wide tag, length and a long (8 byte) to target ! * return end of string ! */ ! char* add_AVAP_long(char *target, int tag, unsigned long long number); /** * add 4 char wide tag, length and a long (8 byte) to target * return end of string */ ! char* add_DAAP_long(char *target, int tag, unsigned long long number); ! ! /** ! * add 1 char wide tag, length and a string (n byte) to target ! * return end of string ! */ ! char* add_AVAP_string(char *target, int tag, char *content); /** * add 4 char wide tag, length and a string (n byte) to target * return end of string */ ! char* add_DAAP_string(char *target, int tag, char *content); ! ! /** ! * add 1 char wide tag, length and content (ignores NULL) to target ! * return end of string ! */ ! char* add_AVAP_content(char *target, int tag, int size, char *content); /** * add 4 char wide tag, length and content (ignores NULL) to target * return end of string */ ! char* add_DAAP_content(char *target, int tag, int size, char *content); #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/ida/mod_avap/src/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile.am 15 Jul 2004 23:38:55 -0000 1.4 --- Makefile.am 13 Jan 2005 16:19:03 -0000 1.5 *************** *** 7,12 **** CFLAGS = -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir) ! libmodavap_la_LDFLAGS = -module -avoid-version -lid3tag -lpq ## Define the source file for the module ! libmodavap_la_SOURCES = mod_avap.c avap.h protocol.c protocol.h avap-items.h avap-cmds.h avap-cmds.c database.c database.h file-scanner.c file-scanner.h --- 7,12 ---- CFLAGS = -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir) ! libmodavap_la_LDFLAGS = -module -avoid-version -lpq ## Define the source file for the module ! libmodavap_la_SOURCES = mod_avap.c avap.h protocol.c protocol.h avap-items.h avap-cmds.h avap-cmds.c database.c database.h Index: avap.h =================================================================== RCS file: /cvsroot/ida/mod_avap/src/avap.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** avap.h 19 Jul 2004 21:32:09 -0000 1.1 --- avap.h 13 Jan 2005 16:19:03 -0000 1.2 *************** *** 32,35 **** --- 32,36 ---- #include "http_request.h" + #include "http_log.h" #include "http_config.h" *************** *** 46,49 **** --- 47,51 ---- int avap_on; + unsigned char prealloc; char *servername; *************** *** 54,58 **** char *databaseuser; char *databasehost; ! int sql_port; } avap_conf_rec; --- 56,60 ---- char *databaseuser; char *databasehost; ! unsigned short sql_port; } avap_conf_rec; |
From: Tobias B. <bra...@us...> - 2005-01-06 19:23:54
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18765 Modified Files: documentation.php Log Message: scrollbar bugfix Index: documentation.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** documentation.php 15 Dec 2004 21:53:02 -0000 1.3 --- documentation.php 6 Jan 2005 19:23:43 -0000 1.4 *************** *** 2,7 **** <frameset cols="*,140" border=0 frameborder=NO framespacing=0 rows="*"> ! <frame src="faq.php" name="docuwindow" scrolling="NO" frameborder="NO"> ! <frame src="navbardocu.php" name="navbardocu" scrolling="NO" frameborder="NO"> </frameset> <noframes> --- 2,7 ---- <frameset cols="*,140" border=0 frameborder=NO framespacing=0 rows="*"> ! <frame src="faq.php" name="docuwindow" scrolling="auto" frameborder="0"> ! <frame src="navbardocu.php" name="navbardocu" scrolling="auto" frameborder="0"> </frameset> <noframes> |
From: Michael R. <mic...@us...> - 2005-01-06 18:15:49
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2234/documentation Modified Files: avapdtut.php fscantut.php Log Message: litte changes in fscantut.php and avapdtut.php Index: fscantut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/fscantut.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fscantut.php 6 Jan 2005 17:56:38 -0000 1.3 --- fscantut.php 6 Jan 2005 18:15:37 -0000 1.4 *************** *** 3,7 **** <body> <br><br> ! <h1>Ida fscan Tutorial</h1> <br><br><br> <p>With this programm you can scan a directory for music files and add them into a database. First you have to install postgreSQL and create a database. Ensure that you have "Posix message queues" enabled in your kernel! It's needed to run PostgreSQL. (Normaly it is...) If you are using Debian-Linux get root and install postgresql this way:</p> --- 3,7 ---- <body> <br><br> ! <h1>Ida file-scanner Tutorial</h1> <br><br><br> <p>With this programm you can scan a directory for music files and add them into a database. First you have to install postgreSQL and create a database. Ensure that you have "Posix message queues" enabled in your kernel! It's needed to run PostgreSQL. (Normaly it is...) If you are using Debian-Linux get root and install postgresql this way:</p> *************** *** 54,65 **** </td></tr> </table> ! <p>Before you can compile the scanner, check that your version of gcc is 3.0 or higher!</p> ! <table border="1" bgcolor="white" cellspacing="0" width="100%"> ! <tr><td> ! $ gcc -v<br> ! gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)<br> ! </td></tr> ! </table> ! <p>Then enter the new directory and run these commands to compile the scanner</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> --- 54,58 ---- </td></tr> </table> ! <p>Before you can compile the scanner, check that your version of gcc is 3.0 or higher! Then enter the new directory and run these commands to compile the scanner</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> Index: avapdtut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avapdtut.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** avapdtut.php 6 Jan 2005 18:03:16 -0000 1.4 --- avapdtut.php 6 Jan 2005 18:15:37 -0000 1.5 *************** *** 17,28 **** </td></tr> </table> ! <p>Before you can compile the server, check that your version of gcc is 3.0 or higher!</p> ! <table border="1" bgcolor="white" cellspacing="0" width="100%"> ! <tr><td> ! $ gcc -v<br> ! gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)<br> ! </td></tr> ! </table> ! <p>Then enter the new directory and run these commands to compile the server</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> --- 17,21 ---- </td></tr> </table> ! <p>Before you can compile the server, check that your version of gcc is 3.0 or higher! Then enter the new directory and run these commands to compile the server</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> |
From: Michael R. <mic...@us...> - 2005-01-06 18:03:29
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31151/documentation Modified Files: avapdtut.php Log Message: some little repairs in avapdtut.php Index: avapdtut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avapdtut.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** avapdtut.php 6 Jan 2005 17:56:38 -0000 1.3 --- avapdtut.php 6 Jan 2005 18:03:16 -0000 1.4 *************** *** 74,78 **** PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ! DAEMON="avapd -b -v -s #RESPONDER="/path/to/mDNSResponder-66.3/mDNSPosix/build/mDNSResponderPosix -p 3689 -t _daap._tcp. -n `hostname`&" NAME=avapd --- 74,78 ---- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ! DAEMON="avapd -b -v -s" #RESPONDER="/path/to/mDNSResponder-66.3/mDNSPosix/build/mDNSResponderPosix -p 3689 -t _daap._tcp. -n `hostname`&" NAME=avapd *************** *** 131,135 **** </table> <p>In the first of these lines you also have to correct the path of the Responder.</p> ! <p>Finaly you can run the following command to create the links.</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> --- 131,135 ---- </table> <p>In the first of these lines you also have to correct the path of the Responder.</p> ! <p>Finaly you can run the following commands to create the links.</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> |
From: Michael R. <mic...@us...> - 2005-01-06 17:56:48
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29631/documentation Modified Files: avapdtut.php daaptut.php fscantut.php Log Message: some little repair in the tutorials Index: daaptut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/daaptut.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** daaptut.php 6 Jan 2005 17:50:39 -0000 1.2 --- daaptut.php 6 Jan 2005 17:56:38 -0000 1.3 *************** *** 27,31 **** <p>For NAME you set the name you want the server to appear in iTunes!</p> <br><br> ! <p align="center"><a href="tutorials.php">back</a></p> </body> --- 27,31 ---- <p>For NAME you set the name you want the server to appear in iTunes!</p> <br><br> ! <p align="center"><a href="../tutorials.php">back</a></p> </body> Index: fscantut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/fscantut.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fscantut.php 6 Jan 2005 17:50:39 -0000 1.2 --- fscantut.php 6 Jan 2005 17:56:38 -0000 1.3 *************** *** 21,25 **** </table> <p>For YOURUSER you have to set the name of your normal user with that you later scan the music and start your server.</p> ! <p>Next you need libid3tag that you can download <a href="http://sourceforge.net/project/showfiles.php?group_id=12349" target="_blank">here<a>. To extract it use</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> --- 21,25 ---- </table> <p>For YOURUSER you have to set the name of your normal user with that you later scan the music and start your server.</p> ! <p>Next you need libid3tag that you can download <a href="http://sourceforge.net/project/showfiles.php?group_id=12349" target="_blank">here</a>. To extract it use</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> *************** *** 96,100 **** <p>This process can take a few minutes!! How long depends on how many files you have to scan!</p> <br><br> ! <p align="center"><a href="tutorials.php">back</a></p> </body> --- 96,100 ---- <p>This process can take a few minutes!! How long depends on how many files you have to scan!</p> <br><br> ! <p align="center"><a href="../tutorials.php">back</a></p> </body> Index: avapdtut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avapdtut.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** avapdtut.php 6 Jan 2005 17:50:39 -0000 1.2 --- avapdtut.php 6 Jan 2005 17:56:38 -0000 1.3 *************** *** 146,150 **** <p>Now the server is installed and starts up at boot time.</p> <br><br> ! <p align="center"><a href="tutorials.php">back</a></p> </body> --- 146,150 ---- <p>Now the server is installed and starts up at boot time.</p> <br><br> ! <p align="center"><a href="../tutorials.php">back</a></p> </body> |
From: Michael R. <mic...@us...> - 2005-01-06 17:50:48
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27933 Modified Files: tutorials.php Log Message: some little repair in the tutorials Index: tutorials.php =================================================================== RCS file: /cvsroot/ida/htdocs/tutorials.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tutorials.php 6 Jan 2005 16:18:01 -0000 1.5 --- tutorials.php 6 Jan 2005 17:50:39 -0000 1.6 *************** *** 13,17 **** </lu> <br><br><br> ! <p>A Tutorial for the mod-avap will be added when this project gets a stable state.</p> </body> <? include "footer.inc"; ?> --- 13,17 ---- </lu> <br><br><br> ! <p>A Tutorial for the mod-avap will be added when this project reaches a stable state.</p> </body> <? include "footer.inc"; ?> |
From: Michael R. <mic...@us...> - 2005-01-06 17:50:48
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27933/documentation Modified Files: avapdtut.php daaptut.php fscantut.php Log Message: some little repair in the tutorials Index: daaptut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/daaptut.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** daaptut.php 6 Jan 2005 16:18:02 -0000 1.1 --- daaptut.php 6 Jan 2005 17:50:39 -0000 1.2 *************** *** 1,3 **** ! <? include "header.inc"; ?> <body> --- 1,3 ---- ! <? include "../header.inc"; ?> <body> *************** *** 30,32 **** </body> ! <? include "footer.inc"; ?> --- 30,32 ---- </body> ! <? include "../footer.inc"; ?> Index: fscantut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/fscantut.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fscantut.php 6 Jan 2005 16:18:02 -0000 1.1 --- fscantut.php 6 Jan 2005 17:50:39 -0000 1.2 *************** *** 1,3 **** ! <? include "header.inc"; ?> <body> --- 1,3 ---- ! <? include "../header.inc"; ?> <body> *************** *** 48,52 **** </td></tr> </table> ! <p>and for the tar.gz archive</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> --- 48,52 ---- </td></tr> </table> ! <p>or for the tar.gz archive</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> *************** *** 100,102 **** </body> ! <? include "footer.inc"; ?> --- 100,102 ---- </body> ! <? include "../footer.inc"; ?> Index: avapdtut.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avapdtut.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** avapdtut.php 6 Jan 2005 16:18:02 -0000 1.1 --- avapdtut.php 6 Jan 2005 17:50:39 -0000 1.2 *************** *** 1,3 **** ! <? include "header.inc"; ?> <body> --- 1,3 ---- ! <? include "../header.inc"; ?> <body> *************** *** 11,15 **** </td></tr> </table> ! <p>and for the tar.gz archive</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> --- 11,15 ---- </td></tr> </table> ! <p>or for the tar.gz archive</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> *************** *** 135,145 **** <tr><td> <pre> ! # ln -s /etc/init.d/avapd /etc/rc0.d/K10avapd && ! ln -s /etc/init.d/avapd /etc/rc1.d/K10avapd && ! ln -s /etc/init.d/avapd /etc/rc2.d/S50avapd && ! ln -s /etc/init.d/avapd /etc/rc3.d/S50avapd && ! ln -s /etc/init.d/avapd /etc/rc4.d/S50avapd && ! ln -s /etc/init.d/avapd /etc/rc5.d/S50avapd && ! ln -s /etc/init.d/avapd /etc/rc6.d/K10avapd</pre> </td></tr> </table> --- 135,145 ---- <tr><td> <pre> ! # ln -s /etc/init.d/avapd /etc/rc0.d/K10avapd ! # ln -s /etc/init.d/avapd /etc/rc1.d/K10avapd ! # ln -s /etc/init.d/avapd /etc/rc2.d/S50avapd ! # ln -s /etc/init.d/avapd /etc/rc3.d/S50avapd ! # ln -s /etc/init.d/avapd /etc/rc4.d/S50avapd ! # ln -s /etc/init.d/avapd /etc/rc5.d/S50avapd ! # ln -s /etc/init.d/avapd /etc/rc6.d/K10avapd</pre> </td></tr> </table> *************** *** 149,151 **** </body> ! <? include "footer.inc"; ?> --- 149,151 ---- </body> ! <? include "../footer.inc"; ?> |
From: Tobias B. <bra...@us...> - 2005-01-06 16:43:12
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11943 Modified Files: index.php Log Message: scrollbar problems should be fixed onw Index: index.php =================================================================== RCS file: /cvsroot/ida/htdocs/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 8 Nov 2004 13:11:19 -0000 1.1.1.1 --- index.php 6 Jan 2005 16:43:02 -0000 1.2 *************** *** 2,7 **** <frameset cols="200,77%" border=0 frameborder=NO framespacing=0 rows="*"> ! <frame src="navbar.php" name="navbar" scrolling="NO" frameborder="NO"> ! <frame src="start.php" name="window" scrolling="NO" frameborder="NO"> </frameset> <noframes> --- 2,7 ---- <frameset cols="200,77%" border=0 frameborder=NO framespacing=0 rows="*"> ! <frame src="navbar.php" name="navbar" scrolling="auto" frameborder="0"> ! <frame src="start.php" name="window" scrolling="auto" frameborder="0"> </frameset> <noframes> |
From: Tobias B. <bra...@us...> - 2005-01-06 16:26:22
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8122 Modified Files: screenshots.php start.php Log Message: bugfixes Index: screenshots.php =================================================================== RCS file: /cvsroot/ida/htdocs/screenshots.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** screenshots.php 15 Dec 2004 22:41:27 -0000 1.5 --- screenshots.php 6 Jan 2005 16:26:00 -0000 1.6 *************** *** 78,82 **** </tr> ! <tr spreed="2"> <td valign="center" align="center"> <p>XMMS - Plugin</p> --- 78,82 ---- </tr> ! <tr> <td valign="center" align="center"> <p>XMMS - Plugin</p> *************** *** 84,99 **** </tr> - </tr> - <tr> <td><br></td> </tr> ! <tr spreed="2"> <td valign="center" align="center"><a href= "pictures/ida-xmms-plugin_screenshot0.png" target="_blank"><img src= "http://ida.sourceforge.net/pictures/ida-xmms-plugin_screenshot0small.png" border="0"></a></td> - </tr> --- 84,96 ---- </tr> <tr> <td><br></td> </tr> ! <tr> <td valign="center" align="center"><a href= "pictures/ida-xmms-plugin_screenshot0.png" target="_blank"><img src= "http://ida.sourceforge.net/pictures/ida-xmms-plugin_screenshot0small.png" border="0"></a></td> </tr> Index: start.php =================================================================== RCS file: /cvsroot/ida/htdocs/start.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** start.php 23 Dec 2004 02:00:11 -0000 1.10 --- start.php 6 Jan 2005 16:26:00 -0000 1.11 *************** *** 31,35 **** Ida offers users a comfortable way to access audio and movie files in sorted lists which include a lot featuring informations ! about them. For more technical details see the Documentation.</p> <p>In detail, you will find here:</p> --- 31,35 ---- Ida offers users a comfortable way to access audio and movie files in sorted lists which include a lot featuring informations ! about them. For more technical details see the <a href="http://ida.sourceforge.net/documentation.php">Documentation</a>.</p> <p>In detail, you will find here:</p> *************** *** 48,52 **** <li>php_avap_admin: A graphical php-admin-interface</li> ! <li>xmms-avap: A Ida-plugin for XMMS (wich will hopefully also support DAAP sometime)</li> </ul> --- 48,52 ---- <li>php_avap_admin: A graphical php-admin-interface</li> ! <li>xmms-avap: A Ida-plugin for XMMS (which will hopefully also support DAAP sometimes)</li> </ul> |
From: Michael R. <mic...@us...> - 2005-01-06 16:18:15
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6403 Modified Files: downloads.php forumlists.php links.php news.php tutorials.php Log Message: added tutorials for ida-fscan, avapd and mDNSResponder. removed HowTos section added mailinglistsection for ida-fscan added News-entry Index: downloads.php =================================================================== RCS file: /cvsroot/ida/htdocs/downloads.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** downloads.php 24 Dec 2004 00:18:17 -0000 1.5 --- downloads.php 6 Jan 2005 16:18:00 -0000 1.6 *************** *** 6,13 **** <h1>Downloads</h1> <br> ! Stable realeases can be found on the <a href="http://sourceforge.net/project/showfiles.php?group_id=112400">Sourceforge-Mirrors</a>.<br> <br> Unstable Snapshots of any Sub-Project can be fetched using CVS (ano...@cv...:/cvsroot/ida).<br> ! A Ida CVS Tutorial can be found on the <a href="http://sourceforge.net/cvs/?group_id=112400">Sourceforge CVS Page</a>.<br> </p> --- 6,13 ---- <h1>Downloads</h1> <br> ! Stable realeases can be found on the <a href="http://sourceforge.net/project/showfiles.php?group_id=112400" target="_blank">Sourceforge-Mirrors</a>.<br> <br> Unstable Snapshots of any Sub-Project can be fetched using CVS (ano...@cv...:/cvsroot/ida).<br> ! A Ida CVS Tutorial can be found on the <a href="http://sourceforge.net/cvs/?group_id=112400" target="_blank">Sourceforge CVS Page</a>.<br> </p> Index: tutorials.php =================================================================== RCS file: /cvsroot/ida/htdocs/tutorials.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tutorials.php 9 Nov 2004 22:34:28 -0000 1.4 --- tutorials.php 6 Jan 2005 16:18:01 -0000 1.5 *************** *** 2,11 **** <body> ! <br><br> ! <h1>Tutorials</h1> ! <br> ! ! no tutorials yet, could you provide them? ! </body> <? include "footer.inc"; ?> --- 2,17 ---- <body> ! <br><br> ! <h1>Tutorials</h1> ! <br><br><br> ! <lu> ! <li><a href="documentation/fscantut.php">Ida file-scanning Tutorial</a></li> ! <br> ! <li><a href="documentation/avapdtut.php">Ida server daemon Tutorial</a></li> ! <br> ! <li><a href="documentation/daaptut.php">DAAP compatibility Tutorial</a></li> ! </lu> ! <br><br><br> ! <p>A Tutorial for the mod-avap will be added when this project gets a stable state.</p> </body> <? include "footer.inc"; ?> Index: news.php =================================================================== RCS file: /cvsroot/ida/htdocs/news.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** news.php 29 Dec 2004 02:18:47 -0000 1.11 --- news.php 6 Jan 2005 16:18:01 -0000 1.12 *************** *** 7,10 **** --- 7,13 ---- <h1>News</h1><br> <ul> + <li>06. January 2005: Tutorials for ida-fscan, avapd and mDSNResponder added</li> + </ul> + <ul> <li>29. December 2004: avapd-0.0.1 released!</li> </ul> Index: links.php =================================================================== RCS file: /cvsroot/ida/htdocs/links.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** links.php 15 Dec 2004 22:18:02 -0000 1.3 --- links.php 6 Jan 2005 16:18:01 -0000 1.4 *************** *** 29,32 **** --- 29,37 ---- <a href="http://www.opendaap.org/" target="_blank">http://www.opendaap.org/</a> </h3> + <h3> + Apple's iTunes Webpage: + </h3> + <h3> + <a href="http://www.apple.com/itunes/" target="_blank">http://www.apple.com/itunes/</a> </body> Index: forumlists.php =================================================================== RCS file: /cvsroot/ida/htdocs/forumlists.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** forumlists.php 9 Nov 2004 22:27:18 -0000 1.2 --- forumlists.php 6 Jan 2005 16:18:00 -0000 1.3 *************** *** 34,37 **** --- 34,41 ---- <a href="http://lists.sourceforge.net/mailman/listinfo/ida-vdr-avap">Subscribe/Unsubscribe</a> <a href="http://sourceforge.net/mailarchive/forum.php?forum=ida-vdr-avap" target="_blank">Archiv</a> + <br> + Ida File Scanner: + <a href="http://lists.sourceforge.net/mailman/listinfo/ida-fscan">Subscribe/Unsubscribe</a> + <a href="http://sourceforge.net/mailarchive/forum.php?forum=ida-fscan" target="_blank">Archiv</a> </body> |
From: Michael R. <mic...@us...> - 2005-01-06 16:18:14
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6403/documentation Added Files: avapdtut.php daaptut.php fscantut.php Log Message: added tutorials for ida-fscan, avapd and mDNSResponder. removed HowTos section added mailinglistsection for ida-fscan added News-entry --- NEW FILE: daaptut.php --- <? include "header.inc"; ?> <body> <br><br> <h1>DAAP compatibility Tutorial</h1> <br><br><br> <p>If you want to use iTunes with the AVAP-Daemon you need the mDNS-Responder which you can download <a href="http://darwinsource.opendarwin.org/tarballs/apsl/mDNSResponder-66.3.tar.gz">here</a>. To extract the archive type</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ tar xvzf mDNSResponder-66.3.tar.gz<br> </td></tr> </table> <p>Enter the directory mDNSPosix and compile the Responder for linux, you don't need a "./configure"!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ cd mDNSResponder-66.3/mDNSPosix<br> $ make os=linux<br> </td></tr> </table> <p>To start the mDNSResponder run the following command</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ cd build<br> $ ./mDNSResponderPosix -p 3689 -t _daap._tcp. -n 'NAME'&<br> </td></tr> </table> <p>For NAME you set the name you want the server to appear in iTunes!</p> <br><br> <p align="center"><a href="tutorials.php">back</a></p> </body> <? include "footer.inc"; ?> --- NEW FILE: fscantut.php --- <? include "header.inc"; ?> <body> <br><br> <h1>Ida fscan Tutorial</h1> <br><br><br> <p>With this programm you can scan a directory for music files and add them into a database. First you have to install postgreSQL and create a database. Ensure that you have "Posix message queues" enabled in your kernel! It's needed to run PostgreSQL. (Normaly it is...) If you are using Debian-Linux get root and install postgresql this way:</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> # apt-get install postgresql postgresql-dev<br> </td></tr> </table> <p>Then you must give your user the privilege to create databases and create one called avdb.</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> # su postgres<br> $ createuser YOURUSER<br> $ su YOURUSER<br> $ createdb avdb<br> </td></tr> </table> <p>For YOURUSER you have to set the name of your normal user with that you later scan the music and start your server.</p> <p>Next you need libid3tag that you can download <a href="http://sourceforge.net/project/showfiles.php?group_id=12349" target="_blank">here<a>. To extract it use</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ tar xvzf libid3tag-0.15.1b.tar.gz<br> </td></tr> </table> <p>Then enter the new directory and run these commands to compile it</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ cd libid3tag-0.15.1b<br> $ ./configure && make<br> </td></tr> </table> <p>For the installation you need root privileges!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ su<br> Password:<br> # make install<br> </td></tr> </table> <p> Now you must download the scanner, for example <a href="http://sourceforge.net/project/showfiles.php?group_id=112400" target="_blank">here</a>. You can choose between a debian package, a bz2-compressed tar archive or a gz-compressed tar archive. To extract the tar.bz2 archive type</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ tar xvjf ida-fscan-0.0.1.tar.bz2<br> </td></tr> </table> <p>and for the tar.gz archive</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ tar xvzf ida-fscan-0.0.1.tar.gz<br> </td></tr> </table> <p>Before you can compile the scanner, check that your version of gcc is 3.0 or higher!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ gcc -v<br> gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)<br> </td></tr> </table> <p>Then enter the new directory and run these commands to compile the scanner</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ cd ida-fscan-0.0.1<br> $ ./configure && make<br> </td></tr> </table> <p>For the installation you need root privileges again!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ su<br> Password:<br> # make install<br> </td></tr> </table> <p>If you are running a Debian system and don't want to compile the scanner yourself, you can download the debian package and install it (you have to be root).</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> # dpkg -i ida-fscan_0.0.1-1_i386.deb<br> </td></tr> </table> <p>Now the scanner is installed and executable with the command "ida-fscan".<br>To scan your music postgres must be running and you must have permission to change the database! If you want a short overview of the parameters for ida-fscan type</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ ida-fscan --help<br> </td></tr> </table> <p>The following command would scan the directory /path/of/my/music and clear the database befor</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ ida-fscan -c /path/of/my/music<br> </td></tr> </table> <p>This process can take a few minutes!! How long depends on how many files you have to scan!</p> <br><br> <p align="center"><a href="tutorials.php">back</a></p> </body> <? include "footer.inc"; ?> --- NEW FILE: avapdtut.php --- <? include "header.inc"; ?> <body> <br><br> <h1>Ida server daemon Tutorial</h1> <br><br><br> <p>The AVAP-Daemon is the server daemon of Ida. First <a href="http://sourceforge.net/project/showfiles.php?group_id=112400" target="_blank">download</a> the daemon. You can choose between a debian package, a bz2-compressed or a gz-compressed tar archive. To extract the tar.bz2 archive type</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ tar xvjf avapd-0.0.1.tar.bz2<br> </td></tr> </table> <p>and for the tar.gz archive</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ tar xvzf avapd-0.0.1.tar.gz<br> </td></tr> </table> <p>Before you can compile the server, check that your version of gcc is 3.0 or higher!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ gcc -v<br> gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)<br> </td></tr> </table> <p>Then enter the new directory and run these commands to compile the server</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ cd avapd-0.0.1<br> $ ./configure && make<br> </td></tr> </table> <p>For the installation you need root privileges!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ su<br> Password:<br> # make install<br> </td></tr> </table> <p>If you are running a Debian system and don't want to compile the server yourself, you can download the debian package and install it (you have to be root).</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> # dpkg -i avapd_0.0.1-1_i386.deb<br> </td></tr> </table> <p>Now the server is installed and executable with the command "avapd". When you want to start the server, ensure that postgres is running and don't forget to start the mDNSResponder if you want to connect with iTunes to the server! To get a list of options use</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ avapd --help<br> </td></tr> </table> <p>It is recommended to start the server in backround and to define a logfile.</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> $ avapd -b -l LOGFILE.log<br> </td></tr> </table> <p>It's also usefull to start the server at boot time. So you need a startscript and rc-links on it. Enter the directory where the startscripts are and create a new file called "avapd". Use your favorite editor to do this (vi, vim, nano, ...).</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> # cd /etc/init.d<br> # vi avapd<br> </td></tr> </table> <p>Now copy in the following script.</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> <pre> #! /bin/sh # # Written by Alexander Bauer <ale...@us...> # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON="avapd -b -v -s #RESPONDER="/path/to/mDNSResponder-66.3/mDNSPosix/build/mDNSResponderPosix -p 3689 -t _daap._tcp. -n `hostname`&" NAME=avapd DESC="Ida server daemon" case "$1" in start) echo -n "Starting $DESC: $NAME" su ida -c "$DAEMON" # su ida -c "$RESPONDER" echo "." ;; stop) echo -n "Stopping $DESC: $NAME " # killall mDNSResponderPosix killall avapd echo "." ;; restart|force-reload) # # If the "reload" option is implemented, move the "force-reload" # option to the "reload" entry above. If not, "force-reload" is # just the same as "restart". # echo -n "Restarting $DESC: $NAME" # killall mDNSResponderPosix killall avapd sleep 1 su ida -c "$DAEMON" # su ida -c "$RESPONDER" echo "." ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 </pre> </td></tr> </table> <p>If you don't like to use syslog remove the "-s" option of avapd and add "-l YOUR_LOGFILE" instead. Of course you can add any options you want... And if you want the script to start the mDNSResponder for iTunes you must remove the "#" at the beginning of the following lines!</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> <pre> #RESPONDER="/path/to/mDNSResponder-66.3/mDNSPosix/build/mDNSResponderPosix -p 3689 -t _daap._tcp. -n `hostname`&" # su ida -c "$RESPONDER" # killall mDNSResponderPosix # killall mDNSResponderPosix # su ida -c "$RESPONDER"</pre> </td></tr> </table> <p>In the first of these lines you also have to correct the path of the Responder.</p> <p>Finaly you can run the following command to create the links.</p> <table border="1" bgcolor="white" cellspacing="0" width="100%"> <tr><td> <pre> # ln -s /etc/init.d/avapd /etc/rc0.d/K10avapd && ln -s /etc/init.d/avapd /etc/rc1.d/K10avapd && ln -s /etc/init.d/avapd /etc/rc2.d/S50avapd && ln -s /etc/init.d/avapd /etc/rc3.d/S50avapd && ln -s /etc/init.d/avapd /etc/rc4.d/S50avapd && ln -s /etc/init.d/avapd /etc/rc5.d/S50avapd && ln -s /etc/init.d/avapd /etc/rc6.d/K10avapd</pre> </td></tr> </table> <p>Now the server is installed and starts up at boot time.</p> <br><br> <p align="center"><a href="tutorials.php">back</a></p> </body> <? include "footer.inc"; ?> |
From: Tobias B. <bra...@us...> - 2005-01-06 15:29:04
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27915 Modified Files: stylesheets.css Log Message: font bugfix Index: stylesheets.css =================================================================== RCS file: /cvsroot/ida/htdocs/stylesheets.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** stylesheets.css 9 Nov 2004 19:29:04 -0000 1.4 --- stylesheets.css 6 Jan 2005 15:28:55 -0000 1.5 *************** *** 9,13 **** body{ ! font-family: "lucida calligraphy", arial, 'sans serif'; background-color:#E9ECFE; color:#241F46; --- 9,13 ---- body{ ! font-family: arial, 'sans serif'; background-color:#E9ECFE; color:#241F46; |
From: Tobias B. <bra...@us...> - 2005-01-06 15:27:10
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27265 Modified Files: header.inc Log Message: stylesheets should now also work in subfolders Index: header.inc =================================================================== RCS file: /cvsroot/ida/htdocs/header.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** header.inc 9 Nov 2004 22:49:03 -0000 1.2 --- header.inc 6 Jan 2005 15:26:59 -0000 1.3 *************** *** 3,7 **** <html> <head> ! <link rel="stylesheet" TYPE="text/css" href="stylesheets.css"> <meta name="generator" content="Bei Hand"> --- 3,7 ---- <html> <head> ! <link rel="stylesheet" TYPE="text/css" href="http://ida.sf.net/stylesheets.css"> <meta name="generator" content="Bei Hand"> |
From: Alexander B. <ale...@us...> - 2005-01-06 14:35:59
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16245 Modified Files: avap-tool-man.php avapd-man.php ida-fscan-man.php Log Message: - fixed some links Index: avap-tool-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avap-tool-man.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** avap-tool-man.php 6 Jan 2005 14:10:14 -0000 1.2 --- avap-tool-man.php 6 Jan 2005 14:35:47 -0000 1.3 *************** *** 6,10 **** <A HREF="http://ida.sourceforge.net/manuals.php">Return to Main Contents</A><HR> - <HR> <A NAME="index"> </A><H2>Index</H2> <DL> --- 6,9 ---- *************** *** 17,20 **** --- 16,20 ---- <DT><A HREF="#lbAI">SEE ALSO</A><DD> </DL> + <HR> <A NAME="lbAB"> </A> Index: avapd-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avapd-man.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** avapd-man.php 6 Jan 2005 14:10:14 -0000 1.2 --- avapd-man.php 6 Jan 2005 14:35:47 -0000 1.3 *************** *** 6,10 **** <A HREF="http://ida.sourceforge.net/manuals.php">Return to Main Contents</A><HR> - <HR> <A NAME="index"> </A><H2>Index</H2> <DL> --- 6,9 ---- *************** *** 17,20 **** --- 16,20 ---- <DT><A HREF="#lbAI">SEE ALSO</A><DD> </DL> + <HR> <A NAME="lbAB"> </A> *************** *** 114,118 **** <B><A HREF="http://ida.sourceforge.net/documentation/ida-fscan-man.php">ida-fscan</A></B>(1), ! <B><A HREF="http://ida.sourceforge.net/documentation/ida-tool-man.php">ida-tool</A></B>(1) <P> --- 114,118 ---- <B><A HREF="http://ida.sourceforge.net/documentation/ida-fscan-man.php">ida-fscan</A></B>(1), ! <B><A HREF="http://ida.sourceforge.net/documentation/avap-tool-man.php">avap-tool</A></B>(1) <P> Index: ida-fscan-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/ida-fscan-man.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ida-fscan-man.php 6 Jan 2005 14:10:14 -0000 1.3 --- ida-fscan-man.php 6 Jan 2005 14:35:47 -0000 1.4 *************** *** 90,94 **** <B><A HREF="http://ida.sourceforge.net/documentation/avapd-man.php">avapd</A></B>(1), ! <B><A HREF="http://ida.sourceforge.net/documentation/ida-tool-man.php">ida-tool</A></B>(1) <P> --- 90,94 ---- <B><A HREF="http://ida.sourceforge.net/documentation/avapd-man.php">avapd</A></B>(1), ! <B><A HREF="http://ida.sourceforge.net/documentation/avap-tool-man.php">avap-tool</A></B>(1) <P> |
From: Alexander B. <ale...@us...> - 2005-01-06 14:12:18
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11359 Modified Files: manuals.php Log Message: - added some missing line feeds Index: manuals.php =================================================================== RCS file: /cvsroot/ida/htdocs/manuals.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** manuals.php 6 Jan 2005 14:07:40 -0000 1.5 --- manuals.php 6 Jan 2005 14:12:10 -0000 1.6 *************** *** 6,14 **** <br> ! <a href="documentation/ida-fscan-man.php">ida-fscan manpage</a> ! ! <a href="documentation/avapd-man.php">avapd manpage</a> ! ! <a href="documentation/avap-tool-man.php">avap-tool manpage</a> </body> --- 6,14 ---- <br> ! <a href="documentation/ida-fscan-man.php">ida-fscan manpage</a><br> ! <br> ! <a href="documentation/avapd-man.php">avapd manpage</a><br> ! <br> ! <a href="documentation/avap-tool-man.php">avap-tool manpage</a><br> </body> |
From: Alexander B. <ale...@us...> - 2005-01-06 14:10:23
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11047 Modified Files: avap-tool-man.php avapd-man.php ida-fscan-man.php Log Message: - some smaller fixes Index: avap-tool-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avap-tool-man.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** avap-tool-man.php 6 Jan 2005 14:07:41 -0000 1.1 --- avap-tool-man.php 6 Jan 2005 14:10:14 -0000 1.2 *************** *** 1,3 **** ! <? include "header.inc"; ?> <BODY> --- 1,3 ---- ! <? include "../header.inc"; ?> <BODY> *************** *** 91,93 **** </BODY> ! <? include "footer.inc"; ?> \ No newline at end of file --- 91,93 ---- </BODY> ! <? include "../footer.inc"; ?> \ No newline at end of file Index: avapd-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/avapd-man.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** avapd-man.php 6 Jan 2005 14:07:41 -0000 1.1 --- avapd-man.php 6 Jan 2005 14:10:14 -0000 1.2 *************** *** 1,3 **** ! <? include "header.inc"; ?> <BODY> --- 1,3 ---- ! <? include "../header.inc"; ?> <BODY> *************** *** 123,125 **** </BODY> ! <? include "footer.inc"; ?> \ No newline at end of file --- 123,125 ---- </BODY> ! <? include "../footer.inc"; ?> \ No newline at end of file Index: ida-fscan-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/ida-fscan-man.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ida-fscan-man.php 6 Jan 2005 14:07:41 -0000 1.2 --- ida-fscan-man.php 6 Jan 2005 14:10:14 -0000 1.3 *************** *** 1,3 **** ! <? include "header.inc"; ?> <BODY> --- 1,3 ---- ! <? include "../header.inc"; ?> <BODY> *************** *** 99,101 **** </BODY> ! <? include "footer.inc"; ?> \ No newline at end of file --- 99,101 ---- </BODY> ! <? include "../footer.inc"; ?> \ No newline at end of file |
From: Alexander B. <ale...@us...> - 2005-01-06 14:07:50
|
Update of /cvsroot/ida/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10331 Modified Files: manuals.php navbardocu.php Log Message: - added manual pages Index: manuals.php =================================================================== RCS file: /cvsroot/ida/htdocs/manuals.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** manuals.php 9 Nov 2004 22:34:28 -0000 1.4 --- manuals.php 6 Jan 2005 14:07:40 -0000 1.5 *************** *** 6,10 **** <br> ! no manuals yet, could you provide them? </body> --- 6,14 ---- <br> ! <a href="documentation/ida-fscan-man.php">ida-fscan manpage</a> ! ! <a href="documentation/avapd-man.php">avapd manpage</a> ! ! <a href="documentation/avap-tool-man.php">avap-tool manpage</a> </body> Index: navbardocu.php =================================================================== RCS file: /cvsroot/ida/htdocs/navbardocu.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** navbardocu.php 15 Dec 2004 21:53:02 -0000 1.5 --- navbardocu.php 6 Jan 2005 14:07:41 -0000 1.6 *************** *** 30,36 **** </tr> <tr> - <td height="25" class=nav><a href="howtos.php" target="docuwindow">HowTos</a></td> - </tr> - <tr> <td height="30" class=nav><h3>Developer</h3></td> </tr> --- 30,33 ---- |
From: Alexander B. <ale...@us...> - 2005-01-06 14:07:50
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10331/documentation Modified Files: ida-fscan-man.php Added Files: avap-tool-man.php avapd-man.php Log Message: - added manual pages --- NEW FILE: avap-tool-man.php --- <? include "header.inc"; ?> <BODY> <H1>AVAP-TOOL</H1> Section: avap-tool Manual Pages (1)<BR>Updated: 2004-12-31<BR><A HREF="#index">Index</A> <A HREF="http://ida.sourceforge.net/manuals.php">Return to Main Contents</A><HR> <HR> <A NAME="index"> </A><H2>Index</H2> <DL> <DT><A HREF="#lbAB">NAME</A><DD> <DT><A HREF="#lbAC">SYNOPSIS</A><DD> <DT><A HREF="#lbAD">DESCRIPTION</A><DD> <DT><A HREF="#lbAE">OPTIONS</A><DD> <DT><A HREF="#lbAF">AUTHOR</A><DD> <DT><A HREF="#lbAG">REPORTING BUGS</A><DD> <DT><A HREF="#lbAI">SEE ALSO</A><DD> </DL> <A NAME="lbAB"> </A> <H2>NAME</H2> avap-tool - Ida client tool <A NAME="lbAC"> </A> <H2>SYNOPSIS</H2> avapd [-option ...] <A NAME="lbAD"> </A> <H2>DESCRIPTION</H2> avap-tool is a Ida client tool for server queries and item downloads. <A NAME="lbAE"> </A> <H2>OPTIONS</H2> avap-tool accepts the following options: <B><DL COMPACT> <DT>-d --download=ID<DD> </B> Download a Song of the given ID. <B><DT>-i --info<DD> </B> Give some informations about the AVAP Server. <B><DT>-l --list<DD> </B> List all Songs located on the Server. <B><DT>-g --genres<DD> </B> List Genres of all Songs. <B><DT>-s --server=HOST<DD> </B> Connect to AVAP server on HOST <B><DT>-p --port=PORT<DD> </B> Connect to AVAP server on PORT <B><DT>-? --help<DD> </B> Give a help page for command line arguments. <B><DT>-V --version<DD> </B> Print program version and exit. </DL> <A NAME="lbAF"> </A> <H2>AUTHOR</H2> Alexander Bauer <<A HREF="mailto:ale...@us...">ale...@us...</A>> <A NAME="lbAG"> </A> <H2>REPORTING BUGS</H2> Reporting bugs to <<A HREF="mailto:ida...@li...">ida...@li...</A>> <A NAME="lbAI"> </A> <H2>SEE ALSO</H2> <B><A HREF="http://ida.sourceforge.net/documentation/ida-fscan-man.php">ida-fscan</A></B>(1), <B><A HREF="http://ida.sourceforge.net/documentation/avapd-man.php">avapd</A></B>(1) <P> <HR> This document was created by man2html, using the manual pages.<BR> Time: 13:33:57 GMT, January 06, 2005 </BODY> <? include "footer.inc"; ?> --- NEW FILE: avapd-man.php --- <? include "header.inc"; ?> <BODY> <H1>AVAPD</H1> Section: avapd Manual Pages (1)<BR>Updated: 2004-12-30<BR><A HREF="#index">Index</A> <A HREF="http://ida.sourceforge.net/manuals.php">Return to Main Contents</A><HR> <HR> <A NAME="index"> </A><H2>Index</H2> <DL> <DT><A HREF="#lbAB">NAME</A><DD> <DT><A HREF="#lbAC">SYNOPSIS</A><DD> <DT><A HREF="#lbAD">DESCRIPTION</A><DD> <DT><A HREF="#lbAE">OPTIONS</A><DD> <DT><A HREF="#lbAF">AUTHOR</A><DD> <DT><A HREF="#lbAG">REPORTING BUGS</A><DD> <DT><A HREF="#lbAI">SEE ALSO</A><DD> </DL> <A NAME="lbAB"> </A> <H2>NAME</H2> avapd - Ida server daemon <A NAME="lbAC"> </A> <H2>SYNOPSIS</H2> avapd [-option ...] <A NAME="lbAD"> </A> <H2>DESCRIPTION</H2> avapd is the AVAP server daemon, which is part of the Ida Project. DAAP is also supported. <A NAME="lbAE"> </A> <H2>OPTIONS</H2> avapd accepts the following options: <B><DL COMPACT> <DT>-a --avap<DD> </B> Handle AVAP Requests only. <B><DT>-b --background<DD> </B> Run Server in Background (Daemonized) <B><DT>-c --config=FILE<DD> </B> Read configuration from: FILE <B><DT>-d --dbname=NAME<DD> </B> Connect Database: NAME <B><DT>-h --psql-host=HOST<DD> </B> Use PostgreSQL on server: HOST <B><DT>-l --logfile=FILE<DD> </B> Logging messages to FILE <B><DT>-n --name=NAME<DD> </B> Set servername to: NAME <B><DT>-p --port=PORT<DD> </B> Set port to PORT to listen for connections <B><DT>-q --quiet<DD> </B> Dont print any warnings <B><DT>-s --syslog<DD> </B> Use syslog <B><DT>-t --daap<DD> </B> Handle DAAP Requests only <B><DT>-v --verbose<DD> </B> Produce verbose information <B><DT>-w --psql-port=PORT<DD> </B> Connect PostgreSQL using port: PORT <B><DT>-? --help<DD> </B> Give this help list <B><DT> --usage<DD> </B> Give a short usage message <B><DT>-V --version<DD> </B> Print program version </DL> <A NAME="lbAF"> </A> <H2>AUTHOR</H2> Alexander Bauer <<A HREF="mailto:ale...@us...">ale...@us...</A>> <A NAME="lbAG"> </A> <H2>REPORTING BUGS</H2> Reporting bugs to <<A HREF="mailto:ida...@li...">ida...@li...</A>> <A NAME="lbAI"> </A> <H2>SEE ALSO</H2> <B><A HREF="http://ida.sourceforge.net/documentation/ida-fscan-man.php">ida-fscan</A></B>(1), <B><A HREF="http://ida.sourceforge.net/documentation/ida-tool-man.php">ida-tool</A></B>(1) <P> <HR> This document was created by man2html, using the manual pages.<BR> Time: 13:31:22 GMT, January 06, 2005 </BODY> <? include "footer.inc"; ?> Index: ida-fscan-man.php =================================================================== RCS file: /cvsroot/ida/htdocs/documentation/ida-fscan-man.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ida-fscan-man.php 6 Jan 2005 13:56:50 -0000 1.1 --- ida-fscan-man.php 6 Jan 2005 14:07:41 -0000 1.2 *************** *** 14,18 **** <DT><A HREF="#lbAF">AUTHOR</A><DD> <DT><A HREF="#lbAG">REPORTING BUGS</A><DD> - <DT><A HREF="#lbAH">OTHER INFO</A><DD> <DT><A HREF="#lbAI">SEE ALSO</A><DD> </DL> --- 14,17 ---- *************** *** 85,95 **** Reporting bugs to <<A HREF="mailto:ida...@li...">ida...@li...</A>> - <A NAME="lbAH"> </A> <H2>SEE ALSO</H2> ! <B><A HREF="http://ida.sourceforge.net/documentation/avapd-man.html">avapd</A></B>(1), ! <B><A HREF="http://ida.sourceforge.net/documentation/ida-tool-man.html">ida-tool</A></B>(1) <P> --- 84,94 ---- Reporting bugs to <<A HREF="mailto:ida...@li...">ida...@li...</A>> + <A NAME="lbAI"> </A> <H2>SEE ALSO</H2> ! <B><A HREF="http://ida.sourceforge.net/documentation/avapd-man.php">avapd</A></B>(1), ! <B><A HREF="http://ida.sourceforge.net/documentation/ida-tool-man.php">ida-tool</A></B>(1) <P> |
From: Alexander B. <ale...@us...> - 2005-01-06 13:56:59
|
Update of /cvsroot/ida/htdocs/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7687 Added Files: ida-fscan-man.php Log Message: - ida-fscan manpage --- NEW FILE: ida-fscan-man.php --- <? include "header.inc"; ?> <BODY> <H1>IDA-FSCAN</H1> Section: Ida file-scanner Manual Pages (1)<BR>Updated: 2004-12-30<BR><A HREF="#index">Index</A> <A HREF="http://ida.sourceforge.net/manuals.php">Return to Main Contents</A><HR> <A NAME="index"> </A><H2>Index</H2> <DL> <DT><A HREF="#lbAB">NAME</A><DD> <DT><A HREF="#lbAC">SYNOPSIS</A><DD> <DT><A HREF="#lbAD">DESCRIPTION</A><DD> <DT><A HREF="#lbAE">OPTIONS</A><DD> <DT><A HREF="#lbAF">AUTHOR</A><DD> <DT><A HREF="#lbAG">REPORTING BUGS</A><DD> <DT><A HREF="#lbAH">OTHER INFO</A><DD> <DT><A HREF="#lbAI">SEE ALSO</A><DD> </DL> <HR> <A NAME="lbAB"> </A> <H2>NAME</H2> ida-fscan - Ida file-scanner <A NAME="lbAC"> </A> <H2>SYNOPSIS</H2> ida-fscan [-option...] PATH [PATH]... <A NAME="lbAD"> </A> <H2>DESCRIPTION</H2> ida-fscan is the file-scanner, which is part of the Ida Project. It can be used to add Multimedia Files into a SQL Database, for later use with other Ida components. <A NAME="lbAE"> </A> <H2>OPTIONS</H2> ida-fscan accepts the following options: <B><DL COMPACT> <DT>-c --clear<DD> </B> Clear Database(s) before scan. <B><DT>-d --database=NAME<DD> </B> Connect to Database: NAME. <B><DT>-f --max-frames=COUNT<DD> </B> Maximum number of frames to scan for bitrate etc. <B><DT>-h --host=HOST<DD> </B> Database Hostname: HOST <B><DT>-p, --port=PORT<DD> </B> Connect Database Host using port: PORT <B><DT>-q --quiet<DD> </B> Dont print any warnings <B><DT>-v --verbose<DD> </B> Produce verbose information <B><DT>-? --help<DD> </B> Give this help list <B><DT> --usage<DD> </B> Give a short usage message <B><DT>-V --version<DD> </B> Print program version </DL> <A NAME="lbAF"> </A> <H2>AUTHOR</H2> Alexander Bauer <<A HREF="mailto:ale...@us...">ale...@us...</A>> <A NAME="lbAG"> </A> <H2>REPORTING BUGS</H2> Reporting bugs to <<A HREF="mailto:ida...@li...">ida...@li...</A>> <A NAME="lbAH"> </A> <H2>SEE ALSO</H2> <B><A HREF="http://ida.sourceforge.net/documentation/avapd-man.html">avapd</A></B>(1), <B><A HREF="http://ida.sourceforge.net/documentation/ida-tool-man.html">ida-tool</A></B>(1) <P> <HR> This document was created by man2html, using the Ida manual pages.<BR> Time: 13:32:30 GMT, January 06, 2005 </BODY> <? include "footer.inc"; ?> |
From: Alexander B. <ale...@us...> - 2004-12-31 19:50:09
|
Update of /cvsroot/ida/avapd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11951/src Modified Files: database.c Log Message: - added reporting of trouble when connecting to a PSQL host Index: database.c =================================================================== RCS file: /cvsroot/ida/avapd/src/database.c,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** database.c 29 Dec 2004 01:58:54 -0000 1.31 --- database.c 31 Dec 2004 19:49:58 -0000 1.32 *************** *** 151,154 **** --- 151,155 ---- if(PQresultStatus(result) != PGRES_TUPLES_OK) { PQclear(result); + PQfinish(conn); log_printf(WARN, "Error: No Song-Table found in Database \"%s\"!\n", config.dbname); return -1; *************** *** 157,160 **** --- 158,162 ---- // TODO: check for movie table + PQclear(result); PQfinish(conn); return 0; *************** *** 456,460 **** PGconn *conn = PQconnectdb(request); if (PQstatus(conn) == CONNECTION_BAD) ! log_printf(ERROR, "Error: Can't connect to SQL-Host \"%s\": %s", request, PQerrorMessage(conn)); #ifdef DEBUG else --- 458,463 ---- PGconn *conn = PQconnectdb(request); if (PQstatus(conn) == CONNECTION_BAD) ! log_printf(ERROR, "Error: Connecting to SQL server on %s: %s", ! !config.psql_host ? "localhost" : config.psql_host, PQerrorMessage(conn)); #ifdef DEBUG else |
From: Alexander B. <ale...@us...> - 2004-12-31 19:36:52
|
Update of /cvsroot/ida/avapd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9859 Modified Files: logger.c Log Message: - removed double-time entry when using syslog Index: logger.c =================================================================== RCS file: /cvsroot/ida/avapd/src/logger.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** logger.c 29 Dec 2004 01:58:56 -0000 1.11 --- logger.c 31 Dec 2004 19:36:42 -0000 1.12 *************** *** 88,100 **** va_end(ap); - strftime(date, 40, "%d %b %Y %H:%M:%S ", gmtime_r(&cur_time, &cur_gmtime)); - pthread_mutex_lock(&lock_logout); switch(log_dest) { case LG_FILE: fprintf(file, "%s%s", date, log_buf); fflush(file); break; case LG_STDERR: if(level==ERROR) fprintf(stderr, "%s%s", date, log_buf); --- 88,100 ---- va_end(ap); pthread_mutex_lock(&lock_logout); switch(log_dest) { case LG_FILE: + strftime(date, 40, "%d %b %Y %H:%M:%S ", gmtime_r(&cur_time, &cur_gmtime)); fprintf(file, "%s%s", date, log_buf); fflush(file); break; case LG_STDERR: + strftime(date, 40, "%d %b %Y %H:%M:%S ", gmtime_r(&cur_time, &cur_gmtime)); if(level==ERROR) fprintf(stderr, "%s%s", date, log_buf); *************** *** 103,107 **** break; case LG_SYSLOG: ! syslog(LOG_INFO, "%s%s", date, log_buf); break; } --- 103,107 ---- break; case LG_SYSLOG: ! syslog(LOG_INFO, "%s", log_buf); break; } |
From: Alexander B. <ale...@us...> - 2004-12-31 14:07:45
|
Update of /cvsroot/ida/libavap/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2219/examples Modified Files: Makefile.am Log Message: - fixed Makefile.am in examples root Index: Makefile.am =================================================================== RCS file: /cvsroot/ida/libavap/examples/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 30 Dec 2004 16:19:38 -0000 1.1 --- Makefile.am 31 Dec 2004 14:07:35 -0000 1.2 *************** *** 4,8 **** CFLAGS = -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir)/include ! avap_tool_LDFLAGS = -module -avoid-version -lavap -L $(top_srcdir)/src/libavap.la avap_tool_SOURCES = avap-tool.c --- 4,8 ---- CFLAGS = -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir)/include ! avap_tool_LDADD = $(top_srcdir)/src/libavap.la avap_tool_SOURCES = avap-tool.c |
From: Alexander B. <ale...@us...> - 2004-12-31 14:07:44
|
Update of /cvsroot/ida/libavap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2219 Modified Files: Makefile.am configure.in Log Message: - fixed Makefile.am in examples root Index: Makefile.am =================================================================== RCS file: /cvsroot/ida/libavap/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile.am 30 Dec 2004 16:19:37 -0000 1.4 --- Makefile.am 31 Dec 2004 14:07:35 -0000 1.5 *************** *** 1 **** ! SUBDIRS = src include examples doc --- 1 ---- ! SUBDIRS = src include doc examples Index: configure.in =================================================================== RCS file: /cvsroot/ida/libavap/configure.in,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** configure.in 30 Dec 2004 16:19:37 -0000 1.4 --- configure.in 31 Dec 2004 14:07:35 -0000 1.5 *************** *** 12,20 **** AC_OUTPUT([ ! doc/Makefile ! examples/Makefile include/Makefile include/avap/Makefile ! src/Makefile ! Makefile ]) --- 12,20 ---- AC_OUTPUT([ ! Makefile ! src/Makefile include/Makefile include/avap/Makefile ! examples/Makefile ! doc/Makefile ]) |