Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2013 17:14:33 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257219 - head/sys/net
Message-ID:  <201310271714.r9RHEXlB054713@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Sun Oct 27 17:14:33 2013
New Revision: 257219
URL: http://svnweb.freebsd.org/changeset/base/257219

Log:
  Almost all if_clone consumers do not care about if_clone_event.
  Do not force them to include sys/eventhandler.h. Those who
  utilize EVENTHANDLER(9), will see the declaration.

Modified:
  head/sys/net/if_clone.h

Modified: head/sys/net/if_clone.h
==============================================================================
--- head/sys/net/if_clone.h	Sun Oct 27 17:12:31 2013	(r257218)
+++ head/sys/net/if_clone.h	Sun Oct 27 17:14:33 2013	(r257219)
@@ -58,9 +58,11 @@ int	ifc_name2unit(const char *name, int 
 int	ifc_alloc_unit(struct if_clone *, int *);
 void	ifc_free_unit(struct if_clone *, int);
 
+#ifdef SYS_EVENTHANDLER_H
 /* Interface clone event. */
 typedef void (*if_clone_event_handler_t)(void *, struct if_clone *);
 EVENTHANDLER_DECLARE(if_clone_event, if_clone_event_handler_t);
+#endif
 
 /* The below interfaces used only by net/if.c. */
 void	if_clone_init(void);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310271714.r9RHEXlB054713>