Skip to content

Commit

Permalink
Bump bitflags to 2.0.0 (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Jun 15, 2023
1 parent 9f72ec3 commit 7ae827b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ndk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ api-level-30 = ["api-level-29"]
test = ["ffi/test", "jni", "all"]

[dependencies]
bitflags = "1.2.1"
bitflags = "2.0.0"
jni-sys = "0.3.0"
num_enum = "0.5.1"
raw-window-handle = "0.5"
Expand Down
1 change: 1 addition & 0 deletions ndk/src/looper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub struct ThreadLooper {

bitflags! {
/// Flags for file descriptor events that a looper can monitor.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct FdEvent: u32 {
const INPUT = ffi::ALOOPER_EVENT_INPUT;
const OUTPUT = ffi::ALOOPER_EVENT_OUTPUT;
Expand Down
1 change: 1 addition & 0 deletions ndk/src/native_activity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ bitflags! {
/// <https://developer.android.com/ndk/reference/group/native-activity#group___native_activity_1ga2f1398dba5e4a5616b83437528bdb28e>
///
/// [`android.view.WindowManager.LayoutParams`]: https://developer.android.com/reference/android/view/WindowManager.LayoutParams
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct WindowFlags: u32 {
const ALLOW_LOCK_WHILE_SCREEN_ON = ffi::AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON;
const DIM_BEHIND = ffi::AWINDOW_FLAG_DIM_BEHIND;
Expand Down

0 comments on commit 7ae827b

Please sign in to comment.