/usr/include/lightdm-gobject-1/lightdm/greeter.h is in liblightdm-gobject-dev 1.18.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | /*
* Copyright (C) 2010 Robert Ancell.
* Author: Robert Ancell <robert.ancell@canonical.com>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2 or version 3 of the License.
* See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
*/
#ifndef LIGHTDM_GREETER_H_
#define LIGHTDM_GREETER_H_
#include <glib-object.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define LIGHTDM_TYPE_GREETER (lightdm_greeter_get_type())
#define LIGHTDM_GREETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_GREETER, LightDMGreeter))
#define LIGHTDM_GREETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_GREETER, LightDMGreeterClass))
#define LIGHTDM_IS_GREETER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_GREETER))
#define LIGHTDM_IS_GREETER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_GREETER))
#define LIGHTDM_GREETER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_GREETER, LightDMGreeterClass))
#define LIGHTDM_GREETER_SIGNAL_SHOW_PROMPT "show-prompt"
#define LIGHTDM_GREETER_SIGNAL_SHOW_MESSAGE "show-message"
#define LIGHTDM_GREETER_SIGNAL_AUTHENTICATION_COMPLETE "authentication-complete"
#define LIGHTDM_GREETER_SIGNAL_AUTOLOGIN_TIMER_EXPIRED "autologin-timer-expired"
#define LIGHTDM_GREETER_SIGNAL_IDLE "idle"
#define LIGHTDM_GREETER_SIGNAL_RESET "reset"
/**
* LightDMPromptType:
* @LIGHTDM_PROMPT_TYPE_QUESTION: Prompt is a question. The information can be shown as it is entered.
* @LIGHTDM_PROMPT_TYPE_SECRET: Prompt is for secret information. The entered information should be obscured so it can't be publically visible.
*/
typedef enum
{
LIGHTDM_PROMPT_TYPE_QUESTION,
LIGHTDM_PROMPT_TYPE_SECRET
} LightDMPromptType;
GType lightdm_prompt_type_get_type (void);
/**
* LightDMMessageType:
* @LIGHTDM_MESSAGE_TYPE_INFO: Informational message.
* @LIGHTDM_MESSAGE_TYPE_ERROR: Error message.
*/
typedef enum
{
LIGHTDM_MESSAGE_TYPE_INFO,
LIGHTDM_MESSAGE_TYPE_ERROR
} LightDMMessageType;
GType lightdm_message_type_get_type (void);
typedef struct
{
GObject parent_instance;
} LightDMGreeter;
typedef struct
{
GObjectClass parent_class;
void (*show_message)(LightDMGreeter *greeter, const gchar *text, LightDMMessageType type);
void (*show_prompt)(LightDMGreeter *greeter, const gchar *text, LightDMPromptType type);
void (*authentication_complete)(LightDMGreeter *greeter);
void (*autologin_timer_expired)(LightDMGreeter *greeter);
void (*idle)(LightDMGreeter *greeter);
void (*reset)(LightDMGreeter *greeter);
/* Reserved */
void (*reserved1) (void);
void (*reserved2) (void);
void (*reserved3) (void);
void (*reserved4) (void);
} LightDMGreeterClass;
#ifdef GLIB_VERSION_2_44
typedef LightDMGreeter *LightDMGreeter_autoptr;
static inline void glib_autoptr_cleanup_LightDMGreeter (LightDMGreeter **_ptr)
{
glib_autoptr_cleanup_GObject ((GObject **) _ptr);
}
#endif
GType lightdm_greeter_get_type (void);
LightDMGreeter *lightdm_greeter_new (void);
void lightdm_greeter_set_resettable (LightDMGreeter *greeter, gboolean resettable);
void lightdm_greeter_connect_to_daemon (LightDMGreeter *greeter, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean lightdm_greeter_connect_to_daemon_finish (LightDMGreeter *greeter, GAsyncResult *result, GError **error);
gboolean lightdm_greeter_connect_to_daemon_sync (LightDMGreeter *greeter, GError **error);
const gchar *lightdm_greeter_get_hint (LightDMGreeter *greeter, const gchar *name);
const gchar *lightdm_greeter_get_default_session_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_hide_users_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_show_manual_login_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_show_remote_login_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_lock_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_has_guest_account_hint (LightDMGreeter *greeter);
const gchar *lightdm_greeter_get_select_user_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_select_guest_hint (LightDMGreeter *greeter);
const gchar *lightdm_greeter_get_autologin_user_hint (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_autologin_guest_hint (LightDMGreeter *greeter);
gint lightdm_greeter_get_autologin_timeout_hint (LightDMGreeter *greeter);
void lightdm_greeter_cancel_autologin (LightDMGreeter *greeter);
void lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username);
void lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter);
void lightdm_greeter_authenticate_autologin (LightDMGreeter *greeter);
void lightdm_greeter_authenticate_remote (LightDMGreeter *greeter, const gchar *session, const gchar *username);
void lightdm_greeter_respond (LightDMGreeter *greeter, const gchar *response);
void lightdm_greeter_cancel_authentication (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_in_authentication (LightDMGreeter *greeter);
gboolean lightdm_greeter_get_is_authenticated (LightDMGreeter *greeter);
const gchar *lightdm_greeter_get_authentication_user (LightDMGreeter *greeter);
void lightdm_greeter_set_language (LightDMGreeter *greeter, const gchar *language);
void lightdm_greeter_start_session (LightDMGreeter *greeter, const gchar *session, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gboolean lightdm_greeter_start_session_finish (LightDMGreeter *greeter, GAsyncResult *result, GError **error);
gboolean lightdm_greeter_start_session_sync (LightDMGreeter *greeter, const gchar *session, GError **error);
void lightdm_greeter_ensure_shared_data_dir (LightDMGreeter *greeter, const gchar *username, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
gchar *lightdm_greeter_ensure_shared_data_dir_finish (LightDMGreeter *greeter, GAsyncResult *result);
gchar *lightdm_greeter_ensure_shared_data_dir_sync (LightDMGreeter *greeter, const gchar *username);
#ifndef LIGHTDM_DISABLE_DEPRECATED
gboolean lightdm_greeter_connect_sync (LightDMGreeter *greeter, GError **error);
#endif
G_END_DECLS
#endif /* LIGHTDM_GREETER_H_ */
|