Skip to content

Commit

Permalink
Renamed new MqAttr getter functions for consistency. Updated CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Dec 27, 2021
1 parent 7016438 commit 9b03b01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -21,6 +21,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
(#[1537](https://github.com/nix-rust/nix/pull/1537))
- Added the `SO_TIMESTAMPING` support
(#[1547](https://github.com/nix-rust/nix/pull/1547))
- Added getter methods to `MqAttr` struct
(#[1619](https://github.com/nix-rust/nix/pull/1619))

### Changed
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions src/mqueue.rs
Expand Up @@ -66,17 +66,17 @@ impl MqAttr {
}

/// The max number of messages that can be held by the queue
pub const fn max_msg(&self) -> mq_attr_member_t {
pub const fn maxmsg(&self) -> mq_attr_member_t {
self.mq_attr.mq_maxmsg
}

/// The maximum size of each message (in bytes)
pub const fn msg_size(&self) -> mq_attr_member_t {
pub const fn msgsize(&self) -> mq_attr_member_t {
self.mq_attr.mq_msgsize
}

/// The number of messages currently held in the queue
pub const fn current_msg(&self) -> mq_attr_member_t {
pub const fn curmsgs(&self) -> mq_attr_member_t {
self.mq_attr.mq_curmsgs
}
}
Expand Down

0 comments on commit 9b03b01

Please sign in to comment.