aboutsummaryrefslogtreecommitdiffstats
path: root/register.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-20 06:28:29 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-20 06:28:29 +0000
commit3164c1e36316c8fcf68edf12887b05311e6164bc (patch)
tree3787d8534448e72e62ad9f7be8a78e2e6aae63cd /register.h
parent984d9b89887df07100d8d9a1f905410621e37e32 (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". svn path=/trunk/; revision=891
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__ */