/* vi: set et sw=4 ts=4 cino=t0,(0: */
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
- * This file is part of tlm (Tizen Login Manager)
+ * This file is part of tlm (Tiny Login Manager)
*
* Copyright (C) 2013-2014 Intel Corporation.
*
const gchar *
tlm_seat_get_id (TlmSeat *seat);
+/** Get the username who occupies the seat
+ * @return The name of the user who holds the seat (to be freed)
+ * @return NULL if nobody occupies the seat
+ */
+gchar *
+tlm_seat_get_occupying_username (TlmSeat* seat);
+
gboolean
tlm_seat_switch_user (TlmSeat *seat,
const gchar *service,
gboolean
tlm_seat_create_session (TlmSeat *seat,
- const gchar *service,
+ const gchar *service,
const gchar *username,
const gchar *password,
GHashTable *environment);
gboolean
-tlm_seat_terminate_session (TlmSeat *seat);
+tlm_seat_terminate_session (TlmSeat *seat, gboolean stop);
G_END_DECLS