[calls] sip: media-manager: Don't include sofia-sip/nua.h in public header



commit 876f12df95e88ddaea2a69d72910f0b7498f4652
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Feb 25 08:35:41 2022 +0100

    sip: media-manager: Don't include sofia-sip/nua.h in public header
    
    It isn't needed in the implementation either. It was only useful because it
    included system headers like sys/types.h and sys/socket.h which we should now
    include directly.
    
    This will make it easier to move the media manager into the core sources.

 plugins/sip/calls-sip-media-manager.c | 5 +++++
 plugins/sip/calls-sip-media-manager.h | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/plugins/sip/calls-sip-media-manager.c b/plugins/sip/calls-sip-media-manager.c
index a16ad42d..7429bdd9 100644
--- a/plugins/sip/calls-sip-media-manager.c
+++ b/plugins/sip/calls-sip-media-manager.c
@@ -30,6 +30,11 @@
 
 #include <gst/gst.h>
 
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+
+
 /**
  * SECTION:sip-media-manager
  * @short_description: The media manager singleton
diff --git a/plugins/sip/calls-sip-media-manager.h b/plugins/sip/calls-sip-media-manager.h
index 311ffdf4..854ba6ce 100644
--- a/plugins/sip/calls-sip-media-manager.h
+++ b/plugins/sip/calls-sip-media-manager.h
@@ -26,7 +26,6 @@
 
 #include "gst-rfc3551.h"
 
-#include <sofia-sip/nua.h>
 #include <sofia-sip/sdp.h>
 #include <glib-object.h>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]