ipcpipeline: cleanup header includes
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Mon, 4 Sep 2017 13:00:02 +0000 (16:00 +0300)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Mon, 4 Sep 2017 13:03:17 +0000 (16:03 +0300)
We are only using read(), write(), memcpy(), strlen() and errno
in ipcpipelinecomm.c. Everything else is glib/gstreamer.

sys/ipcpipeline/gstipcpipelinecomm.c
sys/ipcpipeline/gstipcpipelinecomm.h
sys/ipcpipeline/gstipcpipelinesink.c
sys/ipcpipeline/gstipcpipelinesrc.c

index 6f17a11..c640097 100644 (file)
@@ -27,7 +27,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <string.h>
-#include <stdlib.h>
 #include <gst/base/gstbytewriter.h>
 #include <gst/gstprotection.h>
 #include "gstipcpipelinecomm.h"
index cebbadb..9c0effa 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef __GST_IPC_PIPELINE_COMM_H__
 #define __GST_IPC_PIPELINE_COMM_H__
 
-#include <glib.h>
 #include <gst/gst.h>
 #include <gst/base/gstadapter.h>
 
index f1f02bf..526a731 100644 (file)
@@ -73,9 +73,7 @@
 #  include "config.h"
 #endif
 
-#include <unistd.h>
 #include "gstipcpipelinesink.h"
-#include <string.h>
 
 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
index 656bd5a..3f5525d 100644 (file)
 #  include "config.h"
 #endif
 
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-
 #include "gstipcpipelinesrc.h"
 
 static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",