[vlc-commits] Move core POSIX files to their own directory like Windows files

Rémi Denis-Courmont git at videolan.org
Thu Feb 17 18:48:24 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 17 19:45:38 2011 +0200| [65242d776a2a27ecc13768c4ad1a0d8c9d1da406] | committer: Rémi Denis-Courmont

Move core POSIX files to their own directory like Windows files

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65242d776a2a27ecc13768c4ad1a0d8c9d1da406
---

 src/Makefile.am                                  |   27 +++++++++++----------
 src/{config/dirs_macos.c => posix/darwin_dirs.c} |    2 +-
 src/{misc => posix}/darwin_specific.c            |    0
 src/{config/dirs_xdg.c => posix/dirs.c}          |    2 +-
 src/{misc => posix}/filesystem.c                 |    0
 src/{misc => posix}/linux_specific.c             |    0
 src/{misc/not_specific.c => posix/specific.c}    |    2 +-
 src/{misc/pthread.c => posix/thread.c}           |    2 +-
 8 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 1fa5b86..3454799 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -275,27 +275,27 @@ endif
 endif
 
 SOURCES_libvlc_darwin = \
-	config/dirs_macos.c \
+	config/darwin_dirs.c \
 	misc/atomic.c \
-	misc/filesystem.c \
-	misc/pthread.c \
-	misc/darwin_specific.c \
+	posix/filesystem.c \
+	posix/thread.c \
+	posix/darwin_specific.c \
 	$(NULL)
 
 SOURCES_libvlc_linux = \
-	config/dirs_xdg.c \
+	posix/dirs.c \
 	misc/atomic.c \
-	misc/filesystem.c \
-	misc/pthread.c \
-	misc/linux_specific.c \
+	posix/filesystem.c \
+	posix/thread.c \
+	posix/linux_specific.c \
 	$(NULL)
 
 SOURCES_libvlc_win32 = \
 	win32/dirs.c \
-	win32/specific.c \
 	win32/atomic.c \
 	win32/filesystem.c \
 	win32/thread.c \
+	win32/specific.c \
 	win32/winsock.c \
 	$(NULL)
 
@@ -306,11 +306,12 @@ SOURCES_libvlc_symbian = \
 	$(NULL)
 
 SOURCES_libvlc_other = \
-	config/dirs_xdg.c \
+	posix/dirs.c \
 	misc/atomic.c \
-	misc/filesystem.c \
-	misc/pthread.c \
-	misc/not_specific.c
+	posix/filesystem.c \
+	posix/thread.c \
+	posix/specific.c \
+	$(NULL)
 
 SOURCES_libvlc_common = \
 	libvlc.c \
diff --git a/src/config/dirs_macos.c b/src/posix/darwin_dirs.c
similarity index 98%
rename from src/config/dirs_macos.c
rename to src/posix/darwin_dirs.c
index 0a563d8..1b0f8c1 100644
--- a/src/config/dirs_macos.c
+++ b/src/posix/darwin_dirs.c
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * dirs_macos.c: Mac OS X directories configuration
+ * darwin_dirs.c: Mac OS X directories configuration
  *****************************************************************************
  * Copyright (C) 2001-2009 the VideoLAN team
  * Copyright © 2007-2009 Rémi Denis-Courmont
diff --git a/src/misc/darwin_specific.c b/src/posix/darwin_specific.c
similarity index 100%
rename from src/misc/darwin_specific.c
rename to src/posix/darwin_specific.c
diff --git a/src/config/dirs_xdg.c b/src/posix/dirs.c
similarity index 99%
rename from src/config/dirs_xdg.c
rename to src/posix/dirs.c
index 8dd92cf..955fc8e 100644
--- a/src/config/dirs_xdg.c
+++ b/src/posix/dirs.c
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * dirs_xdg.c: XDG directories configuration
+ * dirs.c: XDG directories configuration
  *****************************************************************************
  * Copyright (C) 2001-2007 the VideoLAN team
  * Copyright © 2007-2009 Rémi Denis-Courmont
diff --git a/src/misc/filesystem.c b/src/posix/filesystem.c
similarity index 100%
rename from src/misc/filesystem.c
rename to src/posix/filesystem.c
diff --git a/src/misc/linux_specific.c b/src/posix/linux_specific.c
similarity index 100%
rename from src/misc/linux_specific.c
rename to src/posix/linux_specific.c
diff --git a/src/misc/not_specific.c b/src/posix/specific.c
similarity index 96%
rename from src/misc/not_specific.c
rename to src/posix/specific.c
index aa6078f..df917c1 100644
--- a/src/misc/not_specific.c
+++ b/src/posix/specific.c
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * not_specific.c: stubs for OS-specific initialization
+ * specific.c: stubs for POSIX OS-specific initialization
  *****************************************************************************
  * Copyright © 2008 Rémi Denis-Courmont
  *
diff --git a/src/misc/pthread.c b/src/posix/thread.c
similarity index 99%
rename from src/misc/pthread.c
rename to src/posix/thread.c
index 169765c..f8a93dc 100644
--- a/src/misc/pthread.c
+++ b/src/posix/thread.c
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * pthread.c : pthread back-end for LibVLC
+ * thread.c : pthread back-end for LibVLC
  *****************************************************************************
  * Copyright (C) 1999-2009 the VideoLAN team
  *



More information about the vlc-commits mailing list