]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
moving to unsupported
authorBrian West <brian@freeswitch.org>
Wed, 11 Nov 2009 16:27:54 +0000 (16:27 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 11 Nov 2009 16:27:54 +0000 (16:27 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15429 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_zeroconf/Makefile [deleted file]
src/mod/event_handlers/mod_zeroconf/mod_zeroconf.2008.vcproj [deleted file]
src/mod/event_handlers/mod_zeroconf/mod_zeroconf.c [deleted file]
src/mod/event_handlers/mod_zeroconf/mod_zeroconf.vcproj [deleted file]

diff --git a/src/mod/event_handlers/mod_zeroconf/Makefile b/src/mod/event_handlers/mod_zeroconf/Makefile
deleted file mode 100644 (file)
index d3e36df..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-switch_srcdir=../../../..
-
-HOWL=howl-1.0.0
-HOWL_DIR=$(switch_srcdir)/libs/$(HOWL)
-HOWLLA=$(HOWL_DIR)/src/lib/howl/libhowl.la
-
-LOCAL_CFLAGS=-I$(HOWL_DIR)/include
-LOCAL_LIBADD=$(HOWLLA)
-
-DEFAULT_ARGS=--prefix=$(PREFIX) --disable-shared --with-pic
-
-include $(switch_srcdir)/build/modmake.rules
-
-$(HOWL_DIR):
-       $(GETLIB) $(HOWL).tar.gz
-       cd $(HOWL_DIR) && ./configure $(DEFAULT_ARGS)
-
-$(HOWLLA): $(HOWL_DIR)
-       cd $(HOWL_DIR) && $(MAKE)
-       $(TOUCH_TARGET)
diff --git a/src/mod/event_handlers/mod_zeroconf/mod_zeroconf.2008.vcproj b/src/mod/event_handlers/mod_zeroconf/mod_zeroconf.2008.vcproj
deleted file mode 100644 (file)
index a28f05f..0000000
+++ /dev/null
@@ -1,291 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>\r
-<VisualStudioProject\r
-       ProjectType="Visual C++"\r
-       Version="9.00"\r
-       Name="mod_zeroconf"\r
-       ProjectGUID="{C7705DC4-2088-493E-AF8D-65BC6D65C125}"\r
-       RootNamespace="mod_zeroconf"\r
-       Keyword="Win32Proj"\r
-       TargetFrameworkVersion="131072"\r
-       >\r
-       <Platforms>\r
-               <Platform\r
-                       Name="Win32"\r
-               />\r
-               <Platform\r
-                       Name="x64"\r
-               />\r
-       </Platforms>\r
-       <ToolFiles>\r
-       </ToolFiles>\r
-       <Configurations>\r
-               <Configuration\r
-                       Name="Debug|Win32"\r
-                       ConfigurationType="2"\r
-                       InheritedPropertySheets="..\..\..\..\w32\module_debug.vsprops"\r
-                       CharacterSet="2"\r
-                       >\r
-                       <Tool\r
-                               Name="VCPreBuildEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCustomBuildTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXMLDataGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCWebServiceProxyGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCMIDLTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCLCompilerTool"\r
-                               AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\..\libs\howl-1.0.0\include&quot;"\r
-                               UsePrecompiledHeader="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManagedResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPreLinkEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCLinkerTool"\r
-                               AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\howl\Win32\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\mDNSResponder\Win32\$(OutDir)&quot;"\r
-                               RandomizedBaseAddress="1"\r
-                               DataExecutionPrevention="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCALinkTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManifestTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXDCMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCBscMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCFxCopTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCAppVerifierTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPostBuildEventTool"\r
-                       />\r
-               </Configuration>\r
-               <Configuration\r
-                       Name="Debug|x64"\r
-                       ConfigurationType="2"\r
-                       InheritedPropertySheets="..\..\..\..\w32\module_debug.vsprops"\r
-                       CharacterSet="2"\r
-                       >\r
-                       <Tool\r
-                               Name="VCPreBuildEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCustomBuildTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXMLDataGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCWebServiceProxyGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCMIDLTool"\r
-                               TargetEnvironment="3"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCLCompilerTool"\r
-                               AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\..\libs\howl-1.0.0\include&quot;"\r
-                               UsePrecompiledHeader="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManagedResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPreLinkEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCLinkerTool"\r
-                               OutputFile="$(SolutionDir)$(PlatformName)\$(ConfigurationName)/mod/$(ProjectName).dll"\r
-                               AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\howl\Win32\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\mDNSResponder\Win32\$(OutDir)&quot;"\r
-                               RandomizedBaseAddress="1"\r
-                               DataExecutionPrevention="0"\r
-                               TargetMachine="17"\r
-                       />\r
-                       <Tool\r
-                               Name="VCALinkTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManifestTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXDCMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCBscMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCFxCopTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCAppVerifierTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPostBuildEventTool"\r
-                       />\r
-               </Configuration>\r
-               <Configuration\r
-                       Name="Release|Win32"\r
-                       ConfigurationType="2"\r
-                       InheritedPropertySheets="..\..\..\..\w32\module_release.vsprops"\r
-                       CharacterSet="2"\r
-                       >\r
-                       <Tool\r
-                               Name="VCPreBuildEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCustomBuildTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXMLDataGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCWebServiceProxyGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCMIDLTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCLCompilerTool"\r
-                               AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\..\libs\howl-1.0.0\include&quot;"\r
-                               UsePrecompiledHeader="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManagedResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPreLinkEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCLinkerTool"\r
-                               AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\howl\Win32\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\mDNSResponder\Win32\$(OutDir)&quot;"\r
-                               RandomizedBaseAddress="1"\r
-                               DataExecutionPrevention="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCALinkTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManifestTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXDCMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCBscMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCFxCopTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCAppVerifierTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPostBuildEventTool"\r
-                       />\r
-               </Configuration>\r
-               <Configuration\r
-                       Name="Release|x64"\r
-                       ConfigurationType="2"\r
-                       InheritedPropertySheets="..\..\..\..\w32\module_release.vsprops"\r
-                       CharacterSet="2"\r
-                       >\r
-                       <Tool\r
-                               Name="VCPreBuildEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCustomBuildTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXMLDataGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCWebServiceProxyGeneratorTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCMIDLTool"\r
-                               TargetEnvironment="3"\r
-                       />\r
-                       <Tool\r
-                               Name="VCCLCompilerTool"\r
-                               AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\..\libs\howl-1.0.0\include&quot;"\r
-                               UsePrecompiledHeader="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManagedResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCResourceCompilerTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPreLinkEventTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCLinkerTool"\r
-                               OutputFile="$(SolutionDir)$(PlatformName)\$(ConfigurationName)/mod/$(ProjectName).dll"\r
-                               AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\howl\Win32\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\mDNSResponder\Win32\$(OutDir)&quot;"\r
-                               RandomizedBaseAddress="1"\r
-                               DataExecutionPrevention="0"\r
-                               TargetMachine="17"\r
-                       />\r
-                       <Tool\r
-                               Name="VCALinkTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCManifestTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCXDCMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCBscMakeTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCFxCopTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCAppVerifierTool"\r
-                       />\r
-                       <Tool\r
-                               Name="VCPostBuildEventTool"\r
-                       />\r
-               </Configuration>\r
-       </Configurations>\r
-       <References>\r
-       </References>\r
-       <Files>\r
-               <File\r
-                       RelativePath=".\mod_zeroconf.c"\r
-                       >\r
-               </File>\r
-       </Files>\r
-       <Globals>\r
-       </Globals>\r
-</VisualStudioProject>\r
diff --git a/src/mod/event_handlers/mod_zeroconf/mod_zeroconf.c b/src/mod/event_handlers/mod_zeroconf/mod_zeroconf.c
deleted file mode 100644 (file)
index 71b19f5..0000000
+++ /dev/null
@@ -1,321 +0,0 @@
-/* 
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2005-2009, Anthony Minessale II <anthm@freeswitch.org>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * Anthony Minessale II <anthm@freeswitch.org>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * 
- * Anthony Minessale II <anthm@freeswitch.org>
- *
- *
- * mod_zeroconf.c -- Framework Demo Module
- *
- */
-#include <switch.h>
-#ifdef _MSC_VER
-#pragma warning(disable:4142)
-#endif
-#include <howl.h>
-
-SWITCH_MODULE_LOAD_FUNCTION(mod_zeroconf_load);
-SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_zeroconf_shutdown);
-SWITCH_MODULE_RUNTIME_FUNCTION(mod_zeroconf_runtime);
-SWITCH_MODULE_DEFINITION(mod_zeroconf, mod_zeroconf_load, mod_zeroconf_shutdown, mod_zeroconf_runtime);
-
-static switch_memory_pool_t *module_pool = NULL;
-
-static struct {
-       sw_discovery discovery;
-       sw_discovery_publish_id disc_id;
-       switch_mutex_t *zc_lock;
-       switch_event_node_t *publish_node;
-       switch_event_node_t *unpublish_node;
-} globals;
-
-
-
-static sw_result HOWL_API my_browser(sw_discovery discovery,
-                                                                        sw_discovery_oid oid,
-                                                                        sw_discovery_browse_status status,
-                                                                        sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_opaque_t extra)
-{
-       //sw_discovery_resolve_id rid;
-
-       switch (status) {
-       case SW_DISCOVERY_BROWSE_INVALID:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Invalid\n");
-               }
-               break;
-
-       case SW_DISCOVERY_BROWSE_RELEASE:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Release\n");
-               }
-               break;
-
-       case SW_DISCOVERY_BROWSE_ADD_DOMAIN:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Add Domain\n");
-               }
-               break;
-
-       case SW_DISCOVERY_BROWSE_ADD_DEFAULT_DOMAIN:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Add Default Domain\n");
-               }
-               break;
-
-       case SW_DISCOVERY_BROWSE_REMOVE_DOMAIN:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Remove Domain\n");
-               }
-               break;
-
-       case SW_DISCOVERY_BROWSE_REMOVE_SERVICE:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Remove Service\n");
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "remove service: 0x%x %s %s %s\n", interface_index, name, type, domain);
-               }
-               break;
-
-       case SW_DISCOVERY_BROWSE_RESOLVED:
-               {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "browse reply: Resolved\n");
-               }
-               break;
-       case SW_DISCOVERY_BROWSE_ADD_SERVICE:
-               break;
-       }
-
-       return SW_OKAY;
-}
-
-
-static sw_result HOWL_API my_service_reply(sw_discovery discovery, sw_discovery_oid oid, sw_discovery_publish_status status, sw_opaque extra)
-{
-       static sw_string status_text[] = {
-               "Started",
-               "Stopped",
-               "Name Collision",
-               "Invalid"
-       };
-
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "publish reply: %s\n", status_text[status]);
-       return SW_OKAY;
-}
-
-
-static void event_handler(switch_event_t *event)
-{
-       sw_text_record text_record;
-       sw_result result;
-
-       switch (event->event_id) {
-       case SWITCH_EVENT_PUBLISH:
-               if (sw_text_record_init(&text_record) != SW_OKAY) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "sw_text_record_init() failed\n");
-                       return;
-               } else {
-                       switch_event_header_t *hp;
-                       char *service = switch_event_get_header(event, "service");
-                       char *port = switch_event_get_header(event, "port");
-                       sw_port porti = 0;
-                       for (hp = event->headers; hp; hp = hp->next) {
-                               size_t len = strlen(hp->name) + strlen(hp->value) + 2;
-                               char *data = malloc(len);
-
-                               if (!data) {
-                                       return;
-                               }
-
-                               switch_snprintf(data, len, "%s=%s", hp->name, hp->value);
-                               if (sw_text_record_add_string(text_record, data) != SW_OKAY) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "unable to add service text: %s\n", data);
-                                       free(data);
-                                       return;
-                               }
-                               free(data);
-                       }
-                       if (!service) {
-                               service = "_freeswitch._tcp";
-                       }
-                       if (port) {
-                               porti = (sw_port) atoi(port);
-                       }
-
-                       switch_mutex_lock(globals.zc_lock);
-                       if ((result = sw_discovery_publish(globals.discovery,
-                                                                                          0,
-                                                                                          "freeswitch",
-                                                                                          service,
-                                                                                          NULL,
-                                                                                          NULL,
-                                                                                          porti,
-                                                                                          sw_text_record_bytes(text_record),
-                                                                                          sw_text_record_len(text_record), my_service_reply, NULL, &globals.disc_id)) != SW_OKAY) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "publish failed: %u\n", result);
-                               sw_text_record_fina(text_record);
-                               switch_mutex_unlock(globals.zc_lock);
-                               return;
-                       }
-                       switch_mutex_unlock(globals.zc_lock);
-                       sw_text_record_fina(text_record);
-               }
-
-               break;
-       case SWITCH_EVENT_UNPUBLISH:
-
-               break;
-       default:
-               break;
-       }
-}
-
-
-static switch_status_t load_config(void)
-{
-       switch_status_t status = SWITCH_STATUS_SUCCESS;
-       char *cf = "zeroconf.conf";
-       int count = 0;
-       sw_discovery_oid *oid;
-       switch_xml_t cfg, xml, settings, param;
-
-       if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
-               return SWITCH_STATUS_TERM;
-       }
-
-       if ((settings = switch_xml_child(cfg, "settings"))) {
-               for (param = switch_xml_child(settings, "param"); param; param = param->next) {
-                       char *var = (char *) switch_xml_attr_soft(param, "name");
-                       char *val = (char *) switch_xml_attr_soft(param, "value");
-
-                       if (!strcmp(var, "browse")) {
-                               if ((oid = switch_core_alloc(module_pool, sizeof(*oid))) != 0) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Bind browser to to %s\n", val);
-                                       switch_mutex_lock(globals.zc_lock);
-                                       sw_discovery_browse(globals.discovery, 0, val, NULL, my_browser, NULL, oid);
-                                       switch_mutex_unlock(globals.zc_lock);
-                                       count++;
-                               } else {
-                                       return SWITCH_STATUS_MEMERR;
-                               }
-                       } else if (!strcasecmp(var, "publish") && !strcasecmp(val, "yes")) {
-                               if (switch_event_bind_removable(modname, SWITCH_EVENT_PUBLISH, SWITCH_EVENT_SUBCLASS_ANY, event_handler, NULL, &globals.publish_node) != SWITCH_STATUS_SUCCESS) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
-                                       return SWITCH_STATUS_GENERR;
-                               }
-
-                               if (switch_event_bind_removable(modname, SWITCH_EVENT_UNPUBLISH, SWITCH_EVENT_SUBCLASS_ANY, event_handler, NULL, &globals.unpublish_node) != SWITCH_STATUS_SUCCESS) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
-                                       return SWITCH_STATUS_GENERR;
-                               }
-                       }
-               }
-       }
-
-       switch_xml_free(xml);
-
-       return status;
-
-}
-
-#define MY_EVENT_PUBLISH "zeroconf::broadcast"
-#define MY_EVENT_UNPUBLISH "zeroconf::unbroadcast"
-
-static int RUNNING = 0;
-
-SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_zeroconf_shutdown)
-{
-       if (RUNNING == 1) {
-               RUNNING = -1;
-               switch_yield(100000);
-       }
-
-       switch_event_unbind(&globals.publish_node);
-       switch_event_unbind(&globals.unpublish_node);
-       switch_event_free_subclass(MY_EVENT_PUBLISH);
-       switch_event_free_subclass(MY_EVENT_UNPUBLISH);
-
-       return SWITCH_STATUS_SUCCESS;
-}
-
-SWITCH_MODULE_LOAD_FUNCTION(mod_zeroconf_load)
-{
-
-       memset(&globals, 0, sizeof(globals));
-
-       module_pool = pool;
-
-       switch_mutex_init(&globals.zc_lock, SWITCH_MUTEX_NESTED, module_pool);
-
-       if (sw_discovery_init(&globals.discovery) != SW_OKAY) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "sw_discovery_init() failed\n");
-               return SWITCH_STATUS_TERM;
-       }
-
-       if (switch_event_reserve_subclass(MY_EVENT_PUBLISH) != SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't register subclass!\n");
-               return SWITCH_STATUS_GENERR;
-       }
-
-       if (switch_event_reserve_subclass(MY_EVENT_UNPUBLISH) != SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't register subclass!\n");
-               return SWITCH_STATUS_GENERR;
-       }
-
-       if (load_config() != SWITCH_STATUS_SUCCESS) {
-               return SWITCH_STATUS_TERM;
-       }
-
-       /* connect my internal structure to the blank pointer passed to me */
-       *module_interface = switch_loadable_module_create_module_interface(pool, modname);
-
-       /* indicate that the module should continue to be loaded */
-       return SWITCH_STATUS_SUCCESS;
-}
-
-
-SWITCH_MODULE_RUNTIME_FUNCTION(mod_zeroconf_runtime)
-{
-
-       RUNNING = 1;
-       while (RUNNING == 1) {
-               sw_uint32 ms;
-               ms = 100;
-               sw_discovery_step(globals.discovery, &ms);
-               switch_cond_next();
-       }
-       RUNNING = 0;
-       return SWITCH_STATUS_TERM;
-}
-
-/* For Emacs:
- * Local Variables:
- * mode:c
- * indent-tabs-mode:t
- * tab-width:4
- * c-basic-offset:4
- * End:
- * For VIM:
- * vim:set softtabstop=4 shiftwidth=4 tabstop=4:
- */
diff --git a/src/mod/event_handlers/mod_zeroconf/mod_zeroconf.vcproj b/src/mod/event_handlers/mod_zeroconf/mod_zeroconf.vcproj
deleted file mode 100644 (file)
index ff68e46..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>\r
-<VisualStudioProject\r
-       ProjectType="Visual C++"\r
-       Version="8.00"\r
-       Name="mod_zeroconf"\r
-       ProjectGUID="{C7705DC4-2088-493E-AF8D-65BC6D65C125}"\r
-       RootNamespace="mod_zeroconf"\r
-       Keyword="Win32Proj"\r
-       >\r
-       <Platforms>\r
-               <Platform\r
-                       Name="Win32"\r
-               />\r
-       </Platforms>\r
-       <ToolFiles>\r
-       </ToolFiles>\r
-       <Configurations>\r
-               <Configuration\r
-                       Name="Debug|Win32"\r
-                       ConfigurationType="2"\r
-                       InheritedPropertySheets="..\..\..\..\w32\module_debug.vsprops"\r
-                       CharacterSet="2"\r
-                       >\r
-                       <Tool\r
-                               Name="VCCLCompilerTool"\r
-                               AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\..\libs\howl-1.0.0\include&quot;"\r
-                               UsePrecompiledHeader="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCLinkerTool"\r
-                               AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\howl\Win32\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\mDNSResponder\Win32\$(OutDir)&quot;"\r
-                       />\r
-               </Configuration>\r
-               <Configuration\r
-                       Name="Release|Win32"\r
-                       ConfigurationType="2"\r
-                       InheritedPropertySheets="..\..\..\..\w32\module_release.vsprops"\r
-                       CharacterSet="2"\r
-                       >\r
-                       <Tool\r
-                               Name="VCCLCompilerTool"\r
-                               AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\..\libs\howl-1.0.0\include&quot;"\r
-                               UsePrecompiledHeader="0"\r
-                       />\r
-                       <Tool\r
-                               Name="VCLinkerTool"\r
-                               AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\howl\Win32\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\howl\src\lib\mDNSResponder\Win32\$(OutDir)&quot;"\r
-                       />\r
-               </Configuration>\r
-       </Configurations>\r
-       <References>\r
-       </References>\r
-       <Files>\r
-               <File\r
-                       RelativePath=".\mod_zeroconf.c"\r
-                       >\r
-               </File>\r
-       </Files>\r
-       <Globals>\r
-       </Globals>\r
-</VisualStudioProject>\r