aboutsummaryrefslogtreecommitdiffstats
path: root/register.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-10-20 06:28:29 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-10-20 06:28:29 +0000
commitdddd16e7b366a243a95de53dacc810d47f390b67 (patch)
tree3787d8534448e72e62ad9f7be8a78e2e6aae63cd /register.h
parent2d0cb052c2c79f5da9610a170d135109ece4bfed (diff)
Automatically generate a function to call the register routines for all
protocols (idea shamelessly stolen from GDB). We require that the register routines 1) be located in "packet.c" or in one of the "packet-XXX.c" files; 2) have a name of the form "proto_register_XXX"; 3) take no argument, and return no value; 4) have their names appear in the source file either at the beginning of the line, or preceded only by "void " at the beginning of the line; and we require that "packet-XXX.c" files be added to "DISSECTOR_SOURCES" in "Makefile.am". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@891 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'register.h')
-rw-r--r--register.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/register.h b/register.h
new file mode 100644
index 0000000000..47f3afde94
--- /dev/null
+++ b/register.h
@@ -0,0 +1,31 @@
+/* register.h
+ * Definitions for protocol registration
+ *
+ * $Id: register.h,v 1.1 1999/10/20 06:28:29 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __REGISTER_H__
+#define __REGISTER_H__
+
+extern void register_all_protocols(void);
+
+#endif /* __REGISTER_H__ */