X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sojka/lightdm.git/blobdiff_plain/1d023a04b43f1986fda138aafd0c7eb19bd20118..acd0eb6be742bc652c5e28ea51e94206775d80f3:/liblightdm-gobject/lightdm/user.h diff --git a/liblightdm-gobject/lightdm/user.h b/liblightdm-gobject/lightdm/user.h index b43fc516..d092477a 100644 --- a/liblightdm-gobject/lightdm/user.h +++ b/liblightdm-gobject/lightdm/user.h @@ -29,6 +29,12 @@ G_BEGIN_DECLS #define LIGHTDM_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_USER)) #define LIGHTDM_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_USER, LightDMUserClass)) +#define LIGHTDM_USER_LIST_SIGNAL_USER_ADDED "user-added" +#define LIGHTDM_USER_LIST_SIGNAL_USER_CHANGED "user-changed" +#define LIGHTDM_USER_LIST_SIGNAL_USER_REMOVED "user-removed" + +#define LIGHTDM_SIGNAL_USER_CHANGED "changed" + typedef struct { GObject parent_instance; @@ -70,6 +76,19 @@ typedef struct void (*reserved6) (void); } LightDMUserListClass; +#ifdef GLIB_VERSION_2_44 +typedef LightDMUser *LightDMUser_autoptr; +static inline void glib_autoptr_cleanup_LightDMUser (LightDMUser **_ptr) +{ + glib_autoptr_cleanup_GObject ((GObject **) _ptr); +} +typedef LightDMUserList *LightDMUserList_autoptr; +static inline void glib_autoptr_cleanup_LightDMUserList (LightDMUserList **_ptr) +{ + glib_autoptr_cleanup_GObject ((GObject **) _ptr); +} +#endif + GType lightdm_user_list_get_type (void); GType lightdm_user_get_type (void); @@ -106,6 +125,8 @@ gboolean lightdm_user_get_logged_in (LightDMUser *user); gboolean lightdm_user_get_has_messages (LightDMUser *user); +uid_t lightdm_user_get_uid (LightDMUser *user); + G_END_DECLS #endif /* LIGHTDM_USER_H_ */