diff options
author | Aylur <[email protected]> | 2024-09-01 03:19:31 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-01 03:19:31 +0200 |
commit | 6adcd2884ee48ec0b1c8b7486e42b2eeffc48159 (patch) | |
tree | 6c9eb7a3a47d5fc2a3bdd866d36dc8fd9201c0d0 /auth/include/astal-auth.h | |
parent | 43e6bd47863c45b9232f0f74e973b83b8354bd3a (diff) |
move to monorepo
Diffstat (limited to 'auth/include/astal-auth.h')
-rw-r--r-- | auth/include/astal-auth.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/auth/include/astal-auth.h b/auth/include/astal-auth.h new file mode 100644 index 0000000..a3073ff --- /dev/null +++ b/auth/include/astal-auth.h @@ -0,0 +1,32 @@ +#ifndef ASTAL_AUTH_PAM_H +#define ASTAL_AUTH_PAM_H + +#include <gio/gio.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +#define ASTAL_AUTH_TYPE_PAM (astal_auth_pam_get_type()) + +G_DECLARE_FINAL_TYPE(AstalAuthPam, astal_auth_pam, ASTAL_AUTH, PAM, GObject) + +void astal_auth_pam_set_username(AstalAuthPam *self, const gchar *username); + +const gchar *astal_auth_pam_get_username(AstalAuthPam *self); + +void astal_auth_pam_set_service(AstalAuthPam *self, const gchar *service); + +const gchar *astal_auth_pam_get_service(AstalAuthPam *self); + +gboolean astal_auth_pam_start_authenticate(AstalAuthPam *self); + +void astal_auth_pam_supply_secret(AstalAuthPam *self, const gchar *secret); + +gboolean astal_auth_pam_authenticate(const gchar *password, GAsyncReadyCallback result_callback, + gpointer user_data); + +gssize astal_auth_pam_authenticate_finish(GAsyncResult *res, GError **error); + +G_END_DECLS + +#endif // !ASTAL_AUTH_PAM_H |