Move src to src/lib, include to src/include, test to src/test.
authorJuho Vähä-Herttua <juhovh@iki.fi>
Tue, 13 Mar 2012 20:02:22 +0000 (22:02 +0200)
committerJuho Vähä-Herttua <juhovh@iki.fi>
Wed, 16 May 2012 21:33:31 +0000 (00:33 +0300)
57 files changed:
AirTV-Qt/AirTV.pro
Makefile
src/include/dnssd.h [moved from include/dnssd.h with 100% similarity]
src/include/raop.h [moved from include/raop.h with 100% similarity]
src/lib/alac/alac.c [moved from src/alac/alac.c with 100% similarity]
src/lib/alac/alac.h [moved from src/alac/alac.h with 100% similarity]
src/lib/alac/stdint_win.h [moved from src/alac/stdint_win.h with 100% similarity]
src/lib/base64.c [moved from src/base64.c with 100% similarity]
src/lib/base64.h [moved from src/base64.h with 100% similarity]
src/lib/compat.h [moved from src/compat.h with 100% similarity]
src/lib/crypto/aes.c [moved from src/crypto/aes.c with 100% similarity]
src/lib/crypto/bigint.c [moved from src/crypto/bigint.c with 100% similarity]
src/lib/crypto/bigint.h [moved from src/crypto/bigint.h with 100% similarity]
src/lib/crypto/bigint_impl.h [moved from src/crypto/bigint_impl.h with 100% similarity]
src/lib/crypto/config.h [moved from src/crypto/config.h with 100% similarity]
src/lib/crypto/crypto.h [moved from src/crypto/crypto.h with 100% similarity]
src/lib/crypto/hmac.c [moved from src/crypto/hmac.c with 100% similarity]
src/lib/crypto/md5.c [moved from src/crypto/md5.c with 100% similarity]
src/lib/crypto/os_port.h [moved from src/crypto/os_port.h with 100% similarity]
src/lib/crypto/rc4.c [moved from src/crypto/rc4.c with 100% similarity]
src/lib/crypto/sha1.c [moved from src/crypto/sha1.c with 100% similarity]
src/lib/dnssd.c [moved from src/dnssd.c with 100% similarity]
src/lib/dnssd.m [moved from src/dnssd.m with 100% similarity]
src/lib/dnssdint.h [moved from src/dnssdint.h with 100% similarity]
src/lib/global.h [moved from src/global.h with 100% similarity]
src/lib/http_parser.c [moved from src/http_parser.c with 100% similarity]
src/lib/http_parser.h [moved from src/http_parser.h with 100% similarity]
src/lib/http_request.c [moved from src/http_request.c with 100% similarity]
src/lib/http_request.h [moved from src/http_request.h with 100% similarity]
src/lib/http_response.c [moved from src/http_response.c with 100% similarity]
src/lib/http_response.h [moved from src/http_response.h with 100% similarity]
src/lib/httpd.c [moved from src/httpd.c with 100% similarity]
src/lib/httpd.h [moved from src/httpd.h with 100% similarity]
src/lib/logger.c [moved from src/logger.c with 100% similarity]
src/lib/logger.h [moved from src/logger.h with 100% similarity]
src/lib/memalign.h [moved from src/memalign.h with 100% similarity]
src/lib/netutils.c [moved from src/netutils.c with 100% similarity]
src/lib/netutils.h [moved from src/netutils.h with 100% similarity]
src/lib/raop.c [moved from src/raop.c with 100% similarity]
src/lib/raop_buffer.c [moved from src/raop_buffer.c with 100% similarity]
src/lib/raop_buffer.h [moved from src/raop_buffer.h with 100% similarity]
src/lib/raop_rtp.c [moved from src/raop_rtp.c with 99% similarity]
src/lib/raop_rtp.h [moved from src/raop_rtp.h with 100% similarity]
src/lib/rsakey.c [moved from src/rsakey.c with 100% similarity]
src/lib/rsakey.h [moved from src/rsakey.h with 100% similarity]
src/lib/rsapem.c [moved from src/rsapem.c with 100% similarity]
src/lib/rsapem.h [moved from src/rsapem.h with 100% similarity]
src/lib/sdp.c [moved from src/sdp.c with 100% similarity]
src/lib/sdp.h [moved from src/sdp.h with 100% similarity]
src/lib/sockets.h [moved from src/sockets.h with 100% similarity]
src/lib/threads.h [moved from src/threads.h with 100% similarity]
src/lib/utils.c [moved from src/utils.c with 100% similarity]
src/lib/utils.h [moved from src/utils.h with 100% similarity]
src/test/dnssd_test.c [moved from test/dnssd_test.c with 100% similarity]
src/test/dnssd_test.m [moved from test/dnssd_test.m with 100% similarity]
src/test/example.c [moved from test/example.c with 100% similarity]
src/test/main.c [moved from test/main.c with 100% similarity]

index cfe3b4f19f5ca82538f074cccace8e71bcb013be..bdfe3a88266627129f4eead18cad3d6bd29a3170 100644 (file)
@@ -24,34 +24,34 @@ macx {
     QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
 }
 
-INCLUDEPATH += ../include/
+INCLUDEPATH += ../src/include/
 SOURCES += main.cpp\
-    ../src/utils.c \
-    ../src/sdp.c \
-    ../src/rsapem.c \
-    ../src/rsakey.c \
-    ../src/raop.c \
-    ../src/raop_rtp.c \
-    ../src/raop_buffer.c \
-    ../src/netutils.c \
-    ../src/httpd.c \
-    ../src/http_response.c \
-    ../src/http_request.c \
-    ../src/http_parser.c \
-    ../src/dnssd.c \
-    ../src/base64.c \
-    ../src/alac/alac.c \
-    ../src/crypto/sha1.c \
-    ../src/crypto/rc4.c \
-    ../src/crypto/md5.c \
-    ../src/crypto/hmac.c \
-    ../src/crypto/bigint.c \
-    ../src/crypto/aes.c \
+    ../src/lib/utils.c \
+    ../src/lib/sdp.c \
+    ../src/lib/rsapem.c \
+    ../src/lib/rsakey.c \
+    ../src/lib/raop.c \
+    ../src/lib/raop_rtp.c \
+    ../src/lib/raop_buffer.c \
+    ../src/lib/netutils.c \
+    ../src/lib/httpd.c \
+    ../src/lib/http_response.c \
+    ../src/lib/http_request.c \
+    ../src/lib/http_parser.c \
+    ../src/lib/dnssd.c \
+    ../src/lib/base64.c \
+    ../src/lib/alac/alac.c \
+    ../src/lib/crypto/sha1.c \
+    ../src/lib/crypto/rc4.c \
+    ../src/lib/crypto/md5.c \
+    ../src/lib/crypto/hmac.c \
+    ../src/lib/crypto/bigint.c \
+    ../src/lib/crypto/aes.c \
+    ../src/lib/logger.c \
     audiooutput.cpp \
     raopservice.cpp \
     mainapplication.cpp \
-    raopcallbackhandler.cpp \
-    ../src/logger.c
+    raopcallbackhandler.cpp
 
 HEADERS  += \
     audiooutput.h \
index e162dc84c1f66d0fd915916d4740306077ada579..68e0132292a2bff986c3a99f46fcc171004ca121 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
-CFLAGS:=-g -Wall -Iinclude/
+CFLAGS:=-g -Wall -Isrc/include/
 LDFLAGS:=-lm
-LIB_OBJS=src/alac/alac.o src/crypto/aes.o src/crypto/bigint.o src/crypto/hmac.o src/crypto/md5.o src/crypto/rc4.o src/crypto/sha1.o src/sdp.o src/raop_buffer.o src/raop_rtp.o src/http_response.o src/http_request.o src/http_parser.o src/httpd.o src/raop.o src/rsakey.o src/rsapem.o src/dnssd.o src/netutils.o src/utils.o src/base64.o src/logger.o
+LIB_OBJS=src/lib/alac/alac.o src/lib/crypto/aes.o src/lib/crypto/bigint.o src/lib/crypto/hmac.o src/lib/crypto/md5.o src/lib/crypto/rc4.o src/lib/crypto/sha1.o src/lib/sdp.o src/lib/raop_buffer.o src/lib/raop_rtp.o src/lib/http_response.o src/lib/http_request.o src/lib/http_parser.o src/lib/httpd.o src/lib/raop.o src/lib/rsakey.o src/lib/rsapem.o src/lib/dnssd.o src/lib/netutils.o src/lib/utils.o src/lib/base64.o src/lib/logger.o
 
 
 all: example
 
-example: test/example.o $(LIB_OBJS)
-       $(CC) $(CFLAGS) test/example.o $(LIB_OBJS) -o $@ $(LDFLAGS)
+example: src/test/example.o $(LIB_OBJS)
+       $(CC) $(CFLAGS) src/test/example.o $(LIB_OBJS) -o $@ $(LDFLAGS)
 
 clean:
-       rm -f example test/*.o $(LIB_OBJS)
+       rm -f example src/test/*.o $(LIB_OBJS)
similarity index 100%
rename from include/dnssd.h
rename to src/include/dnssd.h
similarity index 100%
rename from include/raop.h
rename to src/include/raop.h
similarity index 100%
rename from src/alac/alac.c
rename to src/lib/alac/alac.c
similarity index 100%
rename from src/alac/alac.h
rename to src/lib/alac/alac.h
similarity index 100%
rename from src/base64.c
rename to src/lib/base64.c
similarity index 100%
rename from src/base64.h
rename to src/lib/base64.h
similarity index 100%
rename from src/compat.h
rename to src/lib/compat.h
similarity index 100%
rename from src/crypto/aes.c
rename to src/lib/crypto/aes.c
similarity index 100%
rename from src/crypto/bigint.c
rename to src/lib/crypto/bigint.c
similarity index 100%
rename from src/crypto/bigint.h
rename to src/lib/crypto/bigint.h
similarity index 100%
rename from src/crypto/config.h
rename to src/lib/crypto/config.h
similarity index 100%
rename from src/crypto/crypto.h
rename to src/lib/crypto/crypto.h
similarity index 100%
rename from src/crypto/hmac.c
rename to src/lib/crypto/hmac.c
similarity index 100%
rename from src/crypto/md5.c
rename to src/lib/crypto/md5.c
similarity index 100%
rename from src/crypto/rc4.c
rename to src/lib/crypto/rc4.c
similarity index 100%
rename from src/crypto/sha1.c
rename to src/lib/crypto/sha1.c
similarity index 100%
rename from src/dnssd.c
rename to src/lib/dnssd.c
similarity index 100%
rename from src/dnssd.m
rename to src/lib/dnssd.m
similarity index 100%
rename from src/dnssdint.h
rename to src/lib/dnssdint.h
similarity index 100%
rename from src/global.h
rename to src/lib/global.h
similarity index 100%
rename from src/http_parser.c
rename to src/lib/http_parser.c
similarity index 100%
rename from src/http_parser.h
rename to src/lib/http_parser.h
similarity index 100%
rename from src/http_request.c
rename to src/lib/http_request.c
similarity index 100%
rename from src/http_request.h
rename to src/lib/http_request.h
similarity index 100%
rename from src/http_response.c
rename to src/lib/http_response.c
similarity index 100%
rename from src/http_response.h
rename to src/lib/http_response.h
similarity index 100%
rename from src/httpd.c
rename to src/lib/httpd.c
similarity index 100%
rename from src/httpd.h
rename to src/lib/httpd.h
similarity index 100%
rename from src/logger.c
rename to src/lib/logger.c
similarity index 100%
rename from src/logger.h
rename to src/lib/logger.h
similarity index 100%
rename from src/memalign.h
rename to src/lib/memalign.h
similarity index 100%
rename from src/netutils.c
rename to src/lib/netutils.c
similarity index 100%
rename from src/netutils.h
rename to src/lib/netutils.h
similarity index 100%
rename from src/raop.c
rename to src/lib/raop.c
similarity index 100%
rename from src/raop_buffer.c
rename to src/lib/raop_buffer.c
similarity index 100%
rename from src/raop_buffer.h
rename to src/lib/raop_buffer.h
similarity index 99%
rename from src/raop_rtp.c
rename to src/lib/raop_rtp.c
index 0ef47c42614ffb88c3f4f04573c91c9c24563905..03ae5023cf1fd3387e39b5d7002920b3d9fb6f98 100644 (file)
@@ -179,7 +179,7 @@ raop_rtp_thread_udp(void *arg)
 
        while(1) {
                int volume_changed;
-               float volume;
+               float volume = 0.0;
                int flush;
 
                fd_set rfds;
@@ -308,7 +308,7 @@ raop_rtp_thread_tcp(void *arg)
 
        while (1) {
                int volume_changed;
-               float volume;
+               float volume = 0.0;
 
                fd_set rfds;
                struct timeval tv;
similarity index 100%
rename from src/raop_rtp.h
rename to src/lib/raop_rtp.h
similarity index 100%
rename from src/rsakey.c
rename to src/lib/rsakey.c
similarity index 100%
rename from src/rsakey.h
rename to src/lib/rsakey.h
similarity index 100%
rename from src/rsapem.c
rename to src/lib/rsapem.c
similarity index 100%
rename from src/rsapem.h
rename to src/lib/rsapem.h
similarity index 100%
rename from src/sdp.c
rename to src/lib/sdp.c
similarity index 100%
rename from src/sdp.h
rename to src/lib/sdp.h
similarity index 100%
rename from src/sockets.h
rename to src/lib/sockets.h
similarity index 100%
rename from src/threads.h
rename to src/lib/threads.h
similarity index 100%
rename from src/utils.c
rename to src/lib/utils.c
similarity index 100%
rename from src/utils.h
rename to src/lib/utils.h
similarity index 100%
rename from test/dnssd_test.c
rename to src/test/dnssd_test.c
similarity index 100%
rename from test/dnssd_test.m
rename to src/test/dnssd_test.m
similarity index 100%
rename from test/example.c
rename to src/test/example.c
similarity index 100%
rename from test/main.c
rename to src/test/main.c