mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
[utils] Add ply_round_to_multiple macro
We'll need something like this for rowstride calculation
This commit is contained in:
parent
4c45ba1df7
commit
069839a58b
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ typedef void (* ply_module_function_t) (void);
|
|||
typedef intptr_t ply_daemon_handle_t;
|
||||
|
||||
#ifndef PLY_HIDE_FUNCTION_DECLARATIONS
|
||||
|
||||
#define ply_round_to_multiple(n, m) (((n) + (((m) - 1))) & ~((m) - 1))
|
||||
|
||||
bool ply_open_unidirectional_pipe (int *sender_fd,
|
||||
int *receiver_fd);
|
||||
int ply_connect_to_unix_socket (const char *path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue