diff options
author | kotontrion <[email protected]> | 2024-09-18 20:31:22 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-09-18 20:31:22 +0200 |
commit | 36adb5a19bf0414c7bd3703f4c6244c44fb8e68e (patch) | |
tree | 239fd47001dce18dcb7de58c3bafbe407bdf5f19 /lib/auth/include/astal-auth.h.in | |
parent | c37823ae42b38bed8aca06f78f3a4cb44eb41d5c (diff) | |
parent | 10b9cde328947d038029f2496f43da75138abb3d (diff) |
Merge branch 'fix/wireplumber-11'
Diffstat (limited to 'lib/auth/include/astal-auth.h.in')
-rw-r--r-- | lib/auth/include/astal-auth.h.in | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/auth/include/astal-auth.h.in b/lib/auth/include/astal-auth.h.in new file mode 100644 index 0000000..c8a0ece --- /dev/null +++ b/lib/auth/include/astal-auth.h.in @@ -0,0 +1,38 @@ +#ifndef ASTAL_AUTH_PAM_H +#define ASTAL_AUTH_PAM_H + +#include <gio/gio.h> +#include <glib-object.h> + + +#define ASTAL_AUTH_MAJOR_VERSION @MAJOR_VERSION@ +#define ASTAL_AUTH_MINOR_VERSION @MINOR_VERSION@ +#define ASTAL_AUTH_MICRO_VERSION @MICRO_VERSION@ +#define ASTAL_AUTH_VERSION "@VERSION@" + +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 |