summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-12-11 02:33:33 +0000
committersam <sam@FreeBSD.org>2004-12-11 02:33:33 +0000
commit476c9d3a010c9ec2db658c943141a6cee92cd794 (patch)
tree39a3278eb0acc8da2b932e61895f82cd40238e25 /sbin/ifconfig/ifconfig.h
parent35ee62eea56fd3e170bea33daf977aa394350181 (diff)
downloadFreeBSD-src-476c9d3a010c9ec2db658c943141a6cee92cd794.zip
FreeBSD-src-476c9d3a010c9ec2db658c943141a6cee92cd794.tar.gz
add a callback mechanism for code that wants to defer committing changes
until all the command line args have been processed Reviewed by: ambrisko
Diffstat (limited to 'sbin/ifconfig/ifconfig.h')
-rw-r--r--sbin/ifconfig/ifconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifconfig.h b/sbin/ifconfig/ifconfig.h
index aa09ff8..3de635c 100644
--- a/sbin/ifconfig/ifconfig.h
+++ b/sbin/ifconfig/ifconfig.h
@@ -56,6 +56,9 @@ struct cmd {
};
void cmd_register(struct cmd *);
+typedef void callback_func(int s, void *);
+void callback_register(callback_func *, void *);
+
/*
* Macros for declaring command functions and initializing entries.
*/
OpenPOWER on IntegriCloud