diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-05-12 15:11:07 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-05-12 16:20:28 +0200 |
commit | 4627226d6ed62a9a20220bc193cb1ab1e03dd6f8 (patch) | |
tree | fb8aa1c3842d4822b189c3a93feea3976cb83408 /bgpd/bgp_community.h | |
parent | bgpd: Align bgp_clist.h to our standards (diff) | |
download | frr-4627226d6ed62a9a20220bc193cb1ab1e03dd6f8.tar.xz frr-4627226d6ed62a9a20220bc193cb1ab1e03dd6f8.zip |
bgpd: Align bgp_community.h to our standards
bgp_community.h has function declarations that are
not properly aligned with our standard on how
to do so. Fix.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_community.h')
-rw-r--r-- | bgpd/bgp_community.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/bgpd/bgp_community.h b/bgpd/bgp_community.h index 6f0ae0235..616ddb440 100644 --- a/bgpd/bgp_community.h +++ b/bgpd/bgp_community.h @@ -72,25 +72,26 @@ struct community { extern void community_init(void); extern void community_finish(void); extern void community_free(struct community **comm); -extern struct community *community_uniq_sort(struct community *); -extern struct community *community_parse(uint32_t *, unsigned short); -extern struct community *community_intern(struct community *); -extern void community_unintern(struct community **); -extern char *community_str(struct community *, bool make_json, +extern struct community *community_uniq_sort(struct community *com); +extern struct community *community_parse(uint32_t *pnt, unsigned short length); +extern struct community *community_intern(struct community *com); +extern void community_unintern(struct community **com); +extern char *community_str(struct community *com, bool make_json, bool translate_alias); -extern unsigned int community_hash_make(const struct community *); -extern struct community *community_str2com(const char *); -extern bool community_match(const struct community *, const struct community *); +extern unsigned int community_hash_make(const struct community *com); +extern struct community *community_str2com(const char *str); +extern bool community_match(const struct community *com1, + const struct community *com2); extern bool community_cmp(const struct community *c1, const struct community *c2); -extern struct community *community_merge(struct community *, - struct community *); -extern struct community *community_delete(struct community *, - struct community *); -extern struct community *community_dup(struct community *); -extern bool community_include(struct community *, uint32_t); +extern struct community *community_merge(struct community *com1, + struct community *com2); +extern struct community *community_delete(struct community *com1, + struct community *com2); +extern struct community *community_dup(struct community *com); +extern bool community_include(struct community *com, uint32_t val); extern void community_add_val(struct community *com, uint32_t val); -extern void community_del_val(struct community *, uint32_t *); +extern void community_del_val(struct community *com, uint32_t *val); extern unsigned long community_count(void); extern struct hash *community_hash(void); extern uint32_t community_val_get(struct community *com, int i); |