aboutsummaryrefslogtreecommitdiffstats
path: root/doc/README.plugins
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2004-03-02 23:45:34 +0000
committerJörg Mayer <jmayer@loplof.de>2004-03-02 23:45:34 +0000
commit12a17e8f960034177a91f7e8903654660bdd1cac (patch)
tree9895b2df097bc8240cfd3867ec526efc524a9d14 /doc/README.plugins
parent7fc8a5255a5a474fab912bd7df830f2bf52fc0dd (diff)
Note to self: If you update the code, you should update the docs too.
Update README.plugins to use ENABLE_STATIC instead of __ETHEREAL_STATIC__ Update some plugins, that were created after my changes according to the outdated docs. Changed occurrences of G_MODULE_EXPORT void plugin_reg_handoff(void) into G_MODULE_EXPORT void plugin_reg_handoff(void) as the one line Python version doesn't work with the Python of Suse 9.0 svn path=/trunk/; revision=10281
Diffstat (limited to 'doc/README.plugins')
-rw-r--r--doc/README.plugins14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/README.plugins b/doc/README.plugins
index 536cd133e9..131edb76df 100644
--- a/doc/README.plugins
+++ b/doc/README.plugins
@@ -1,4 +1,4 @@
-$Id: README.plugins,v 1.9 2003/11/06 09:52:28 guy Exp $
+$Id: README.plugins,v 1.10 2004/03/02 23:45:33 jmayer Exp $
Plugins
@@ -44,7 +44,7 @@ to reference the address table.
Plugins need to provide the following exported constants:
-#ifndef __ETHEREAL_STATIC__
+#ifndef ENABLE_STATIC
G_MODULE_EXPORT const gchar version[] = VERSION;
#endif
@@ -57,8 +57,9 @@ the object for linking into a static ethereal binary.
The following two functions need to be exported by the plugin:
-#ifndef __ETHEREAL_STATIC__
-G_MODULE_EXPORT void plugin_init(plugin_address_table_t *pat)
+#ifndef ENABLE_STATIC
+G_MODULE_EXPORT void
+plugin_init(plugin_address_table_t *pat)
#endif
This function is called by Ethereal when the plugin is initialized; it's
@@ -76,8 +77,9 @@ Here is a sample code for the function:
proto_register_xxx();
}
-#ifndef __ETHEREAL_STATIC__
-G_MODULE_EXPORT void plugin_reg_handoff(void)
+#ifndef ENABLE_STATIC
+G_MODULE_EXPORT void
+plugin_reg_handoff(void)
#endif
This function is called by Ethereal after all dissectors, including all