/usr/include/lightdm-gobject-1/lightdm/greeter.h is in liblightdm-gobject-dev 1.10.3-3.
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 | /*
* 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>
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))
/**
* 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;
/**
* LightDMMessageType:
* @LIGHTDM_MESSAGE_TYPE_INFO: Informational message.
* @LIGHTDM_MESSAGE_TYPE_ERROR: Error message.
*/
typedef enum
{
LIGHTDM_MESSAGE_TYPE_INFO,
LIGHTDM_MESSAGE_TYPE_ERROR
} LightDMMessageType;
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);
/* Reserved */
void (*reserved1) (void);
void (*reserved2) (void);
void (*reserved3) (void);
void (*reserved4) (void);
void (*reserved5) (void);
void (*reserved6) (void);
} LightDMGreeterClass;
GType lightdm_greeter_get_type (void);
LightDMGreeter *lightdm_greeter_new (void);
gboolean lightdm_greeter_connect_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);
gboolean lightdm_greeter_start_session_sync (LightDMGreeter *greeter, const gchar *session, GError **error);
gchar *lightdm_greeter_ensure_shared_data_dir_sync (LightDMGreeter *greeter, const gchar *username);
G_END_DECLS
#endif /* LIGHTDM_GREETER_H_ */
|