summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-28 00:57:38 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-28 00:57:38 +0100
commitb28ff39f42877daef31383748fd2f313d7fd67c1 (patch)
treecae837d424b95ef5057b3c48cab8c4280073fbb8 /src/libsystemd/sd-bus/bus-internal.h
parentaf08d2f9cde8f46d9d3e731dbd1f06ffb3b08942 (diff)
bus: rework bloom filter logic to operate with variable bloom filter
sizes and numbers of hash functions In order to make the bloom filter logic more future proof communicate bloom filter parameters from the original bus creator to the clients, and allow them to be variable within certain ranges.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-internal.h')
-rw-r--r--src/libsystemd/sd-bus/bus-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-internal.h b/src/libsystemd/sd-bus/bus-internal.h
index 69e07018d8..a4160ef4a1 100644
--- a/src/libsystemd/sd-bus/bus-internal.h
+++ b/src/libsystemd/sd-bus/bus-internal.h
@@ -271,6 +271,9 @@ struct sd_bus {
char *cgroup_root;
char *connection_name;
+
+ size_t bloom_size;
+ unsigned bloom_n_hash;
};
#define BUS_DEFAULT_TIMEOUT ((usec_t) (25 * USEC_PER_SEC))