[vlc-commits] cli: privatise intf_sys_t

Rémi Denis-Courmont git at videolan.org
Sun Nov 29 14:55:51 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 28 21:50:26 2020 +0200| [8d4f5a11622a302ccde27b81b14ff4bf4aa25816] | committer: Rémi Denis-Courmont

cli: privatise intf_sys_t

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

 modules/control/cli/cli.c | 19 +++++++++++++++++++
 modules/control/cli/cli.h | 19 -------------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index 8bbcc30807..a5f220697a 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -63,6 +63,25 @@
 
 #include "cli.h"
 
+struct intf_sys_t
+{
+    vlc_thread_t thread;
+    void *commands;
+    void *player_cli;
+
+    vlc_mutex_t output_lock;
+#ifndef _WIN32
+    FILE *stream;
+    int fd;
+    char *psz_unix_path;
+#else
+    HANDLE hConsoleIn;
+    bool b_quiet;
+    int i_socket;
+#endif
+    int *pi_socket_listen;
+};
+
 #define MAX_LINE_LENGTH 1024
 
 static void msg_vprint(intf_thread_t *p_intf, const char *psz_fmt, va_list args)
diff --git a/modules/control/cli/cli.h b/modules/control/cli/cli.h
index 69ac092b8f..a553f93abf 100644
--- a/modules/control/cli/cli.h
+++ b/modules/control/cli/cli.h
@@ -29,25 +29,6 @@ struct cli_client
     intf_thread_t *intf;
 };
 
-struct intf_sys_t
-{
-    vlc_thread_t thread;
-    void *commands;
-    void *player_cli;
-
-    vlc_mutex_t output_lock;
-#ifndef _WIN32
-    FILE *stream;
-    int fd;
-    char *psz_unix_path;
-#else
-    HANDLE hConsoleIn;
-    bool b_quiet;
-    int i_socket;
-#endif
-    int *pi_socket_listen;
-};
-
 VLC_FORMAT(2, 3)
 int cli_printf(struct cli_client *cl, const char *fmt, ...);
 



More information about the vlc-commits mailing list