[vlc-devel] [PATCH 7/9] access: fs.h: Remove unneeded common declaration

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Sep 17 11:29:03 CEST 2020


DirControl doesn't exist anymore and DirRead is only used from
directory.c so it can be switched to static
---
 modules/access/directory.c | 4 +++-
 modules/access/fs.h        | 2 --
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/directory.c b/modules/access/directory.c
index 63ff7e96ff..8b590df944 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -48,6 +48,8 @@ typedef struct
     DIR *dir;
 } access_sys_t;
 
+static int DirRead (stream_t *access, input_item_node_t *node);
+
 /*****************************************************************************
  * DirInit: Init the directory access with a directory stream
  *****************************************************************************/
@@ -115,7 +117,7 @@ void DirClose(vlc_object_t *obj)
     closedir(sys->dir);
 }
 
-int DirRead (stream_t *access, input_item_node_t *node)
+static int DirRead (stream_t *access, input_item_node_t *node)
 {
     access_sys_t *sys = access->p_sys;
     const char *entry;
diff --git a/modules/access/fs.h b/modules/access/fs.h
index a822b3bc45..bbf1c61ba1 100644
--- a/modules/access/fs.h
+++ b/modules/access/fs.h
@@ -25,6 +25,4 @@ void FileClose (vlc_object_t *);
 
 int DirOpen (vlc_object_t *);
 int DirInit (stream_t *p_access, DIR *handle);
-int DirRead (stream_t *, input_item_node_t *);
-int DirControl (stream_t *, int, va_list);
 void DirClose (vlc_object_t *);
-- 
2.20.1



More information about the vlc-devel mailing list