netsock: Remove from Asterisk core.
authorCorey Farrell <git@cfware.com>
Mon, 18 Dec 2017 20:00:35 +0000 (15:00 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 18 Dec 2017 20:00:35 +0000 (15:00 -0500)
This moves netsock.c / netsock.h to the chan_iax2 module.  netsock.h has
been marked deprecated since 13.0.0, chan_iax2 is the only remaining
user.

Change-Id: I28c6578043bac18de5ea608e136acec4f83d5dd3

channels/chan_iax2.c
channels/iax2/include/netsock.h [moved from include/asterisk/netsock.h with 100% similarity]
channels/iax2/netsock.c [moved from main/netsock.c with 99% similarity]

index 69261f3..be24ce3 100644 (file)
@@ -99,7 +99,6 @@
 #include "asterisk/localtime.h"
 #include "asterisk/dnsmgr.h"
 #include "asterisk/devicestate.h"
-#include "asterisk/netsock.h"
 #include "asterisk/stringfields.h"
 #include "asterisk/linkedlists.h"
 #include "asterisk/astobj2.h"
 #include "iax2/include/provision.h"
 #include "iax2/include/codec_pref.h"
 #include "iax2/include/format_compatibility.h"
+#include "iax2/include/netsock.h"
 
 #include "jitterbuf.h"
 
similarity index 99%
rename from main/netsock.c
rename to channels/iax2/netsock.c
index 91f7e73..8e2bd0e 100644 (file)
@@ -43,7 +43,7 @@
 #include <ifaddrs.h>
 #endif
 
-#include "asterisk/netsock.h"
+#include "include/netsock.h"
 #include "asterisk/netsock2.h"
 #include "asterisk/utils.h"
 #include "asterisk/astobj.h"