soup-password-manager.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2. /*
  3. * Copyright (C) 2008 Red Hat, Inc.
  4. */
  5. #ifndef SOUP_PASSWORD_MANAGER_H
  6. #define SOUP_PASSWORD_MANAGER_H 1
  7. #include <libsoup/soup-types.h>
  8. #define SOUP_TYPE_PASSWORD_MANAGER (soup_password_manager_get_type ())
  9. #define SOUP_PASSWORD_MANAGER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), SOUP_TYPE_PASSWORD_MANAGER, SoupPasswordManager))
  10. #define SOUP_PASSWORD_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_PASSWORD_MANAGER, SoupPasswordManagerInterface))
  11. #define SOUP_IS_PASSWORD_MANAGER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), SOUP_TYPE_PASSWORD_MANAGER))
  12. #define SOUP_IS_PASSWORD_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOUP_TYPE_PASSWORD_MANAGER))
  13. #define SOUP_PASSWORD_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SOUP_TYPE_PASSWORD_MANAGER, SoupPasswordManagerInterface))
  14. typedef struct _SoupPasswordManager SoupPasswordManager;
  15. typedef void (*SoupPasswordManagerCallback) (SoupPasswordManager *password_manager,
  16. SoupMessage *msg, SoupAuth *auth,
  17. gboolean retrying,
  18. gpointer user_data);
  19. typedef struct {
  20. GTypeInterface base;
  21. /* virtual methods */
  22. void (*get_passwords_async) (SoupPasswordManager *password_manager,
  23. SoupMessage *msg, SoupAuth *auth,
  24. gboolean retrying,
  25. GMainContext *async_context,
  26. GCancellable *cancellable,
  27. SoupPasswordManagerCallback callback,
  28. gpointer user_data);
  29. void (*get_passwords_sync) (SoupPasswordManager *password_manager,
  30. SoupMessage *msg, SoupAuth *auth,
  31. GCancellable *cancellable);
  32. } SoupPasswordManagerInterface;
  33. SOUP_AVAILABLE_IN_2_28
  34. SOUP_DEPRECATED_IN_2_28
  35. GType soup_password_manager_get_type (void);
  36. SOUP_AVAILABLE_IN_2_28
  37. SOUP_DEPRECATED_IN_2_28
  38. void soup_password_manager_get_passwords_async (SoupPasswordManager *password_manager,
  39. SoupMessage *msg,
  40. SoupAuth *auth,
  41. gboolean retrying,
  42. GMainContext *async_context,
  43. GCancellable *cancellable,
  44. SoupPasswordManagerCallback callback,
  45. gpointer user_data);
  46. SOUP_AVAILABLE_IN_2_28
  47. SOUP_DEPRECATED_IN_2_28
  48. void soup_password_manager_get_passwords_sync (SoupPasswordManager *password_manager,
  49. SoupMessage *msg,
  50. SoupAuth *auth,
  51. GCancellable *cancellable);
  52. #endif /* SOUP_PASSWORD_MANAGER_H */