Added a function to segmentate a generic integer

This commit is contained in:
Martin Willi
2010-07-28 10:06:19 +02:00
parent ff7b0dd289
commit 7455ab063f
2 changed files with 48 additions and 18 deletions
+7
View File
@@ -47,6 +47,13 @@ struct ha_kernel_t {
*/
u_int (*get_segment_spi)(ha_kernel_t *this, host_t *host, u_int32_t spi);
/**
* Get the segment an arbitrary integer is in.
*
* @param n integer to segmentate
*/
u_int (*get_segment_int)(ha_kernel_t *this, int n);
/**
* Activate a segment at kernel level for all cluster addresses.
*