diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/password-buffer.h | 9 | ||||
| -rw-r--r-- | include/swaylock.h | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/password-buffer.h b/include/password-buffer.h new file mode 100644 index 0000000..74f35aa --- /dev/null +++ b/include/password-buffer.h @@ -0,0 +1,9 @@ +#ifndef _SWAY_PASSWORD_BUFFER_H +#define _SWAY_PASSWORD_BUFFER_H + +#include <stddef.h> + +char *password_buffer_create(size_t size); +void password_buffer_destroy(char *buffer, size_t size); + +#endif diff --git a/include/swaylock.h b/include/swaylock.h index da6e3e9..e49c716 100644 --- a/include/swaylock.h +++ b/include/swaylock.h @@ -67,7 +67,8 @@ struct swaylock_args { struct swaylock_password { size_t len; - char buffer[1024]; + size_t buffer_len; + char *buffer; }; struct swaylock_state { |
