Modify error handling logic
[platform/core/system/tlm.git] / src / daemon / tlm-seat.h
index eba6311..0a57f86 100644 (file)
@@ -1,7 +1,7 @@
 /* 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.
  *
@@ -67,6 +67,13 @@ tlm_seat_new (TlmConfig *config,
 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,
@@ -76,13 +83,13 @@ tlm_seat_switch_user (TlmSeat *seat,
 
 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