diff options
author | Patrick McHardy <kaber@trash.net> | 2010-11-14 18:31:33 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-14 19:09:36 +0100 |
commit | ab0a2a6afa22a4e6140e075b488b3e424898976d (patch) | |
tree | 1a8155ed7f964209fa977def47b327abc5db5df5 | |
parent | 582a7d50c70492776d9f1be4a9c9b1cdb0b6103e (diff) |
identities: add dect_ari_cmp()
Already contained in the header files, but never implemented.
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | include/dect/libdect.h | 1 | ||||
-rw-r--r-- | src/identities.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/dect/libdect.h b/include/dect/libdect.h index 771d0f1..2e797ab 100644 --- a/include/dect/libdect.h +++ b/include/dect/libdect.h @@ -145,7 +145,6 @@ struct dect_ops { extern struct dect_handle *dect_open_handle(struct dect_ops *ops, const char *cluster); extern void dect_close_handle(struct dect_handle *dh); - extern void *dect_handle_priv(struct dect_handle *dh); extern void dect_pp_set_ipui(struct dect_handle *dh, diff --git a/src/identities.c b/src/identities.c index 33e4ff8..3dae8b5 100644 --- a/src/identities.c +++ b/src/identities.c @@ -122,6 +122,12 @@ uint64_t dect_build_ari(const struct dect_ari *ari) return a; } +bool dect_ari_cmp(const struct dect_ari *ari1, const struct dect_ari *ari2) +{ + return memcmp(ari1, ari2, sizeof(*ari1)); +} +EXPORT_SYMBOL(dect_ari_cmp); + static void dect_dump_ipei(const struct dect_ipei *ipei) { sfmt_debug("\tEMC: %.4x\n", ipei->emc); |