summaryrefslogtreecommitdiffstats
path: root/lib/smux.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-15 18:59:03 +0200
committerPaul Jakma <paul@quagga.net>2009-06-18 21:18:29 +0200
commit65d3fbb4835e268b1683b88b12e101c6592b1948 (patch)
tree5eb12ca5e645fd6d4751367d6b2b2ea5ed18699e /lib/smux.h
parent[bgpd/cleanup] BGP make attribute variables local (diff)
downloadfrr-65d3fbb4835e268b1683b88b12e101c6592b1948.tar.xz
frr-65d3fbb4835e268b1683b88b12e101c6592b1948.zip
[cleanup] Use const in smux interface
smux_trap and oid_copy should allow read-only source.
Diffstat (limited to 'lib/smux.h')
-rw-r--r--lib/smux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/smux.h b/lib/smux.h
index bab3587bc..f5754ed90 100644
--- a/lib/smux.h
+++ b/lib/smux.h
@@ -150,11 +150,12 @@ extern void smux_register_mib(const char *, struct variable *,
size_t, int, oid [], size_t);
extern int smux_header_generic (struct variable *, oid [], size_t *,
int, size_t *, WriteMethod **);
-extern int smux_trap (oid *, size_t, oid *, size_t, struct trap_object *,
+extern int smux_trap (const oid *, size_t, const oid *, size_t,
+ const struct trap_object *,
size_t, unsigned int, u_char);
extern int oid_compare (oid *, int, oid *, int);
extern void oid2in_addr (oid [], int, struct in_addr *);
-extern void *oid_copy (void *, void *, size_t);
+extern void *oid_copy (void *, const void *, size_t);
extern void oid_copy_addr (oid [], struct in_addr *, int);
#endif /* _ZEBRA_SNMP_H */