|  |  |  | PolicyKit Library Reference Manual |  | 
|---|---|---|---|---|
                    PolKitSeat;
PolKitSeat*         polkit_seat_new                     (void);
PolKitSeat*         polkit_seat_ref                     (PolKitSeat *seat);
void                polkit_seat_unref                   (PolKitSeat *seat);
polkit_bool_t       polkit_seat_set_ck_objref           (PolKitSeat *seat,
                                                         const char *ck_objref);
polkit_bool_t       polkit_seat_get_ck_objref           (PolKitSeat *seat,
                                                         char **out_ck_objref);
void                polkit_seat_debug                   (PolKitSeat *seat);
polkit_bool_t       polkit_seat_validate                (PolKitSeat *seat);
typedef struct _PolKitSeat PolKitSeat;
Objects of this class are used to record information about a seat.
PolKitSeat* polkit_seat_new (void);
Creates a new PolKitSeat object.
| Returns: | the new object | 
PolKitSeat* polkit_seat_ref (PolKitSeat *seat);
Increase reference count.
| 
 | the seat object | 
| Returns: | the object | 
void polkit_seat_unref (PolKitSeat *seat);
Decreases the reference count of the object. If it becomes zero, the object is freed. Before freeing, reference counts on embedded objects are decresed by one.
| 
 | the seat object | 
polkit_bool_t polkit_seat_set_ck_objref (PolKitSeat *seat, const char *ck_objref);
Set the D-Bus object path to the ConsoleKit seat object.
| 
 | the seat object | 
| 
 | the D-Bus object path to the ConsoleKit seat object | 
| Returns: | TRUE only if the value validated and was set | 
polkit_bool_t polkit_seat_get_ck_objref (PolKitSeat *seat, char **out_ck_objref);
Get the D-Bus object path to the ConsoleKit seat object.
| 
 | the seat object | 
| 
 | Returns the D-Bus object path to the ConsoleKit seat object. The caller shall not free this string. | 
| Returns: | TRUE iff the value is returned | 
void polkit_seat_debug (PolKitSeat *seat);
Print debug details
| 
 | the object | 
polkit_bool_t polkit_seat_validate (PolKitSeat *seat);
Validate the object
| 
 | the object | 
| Returns: | TRUE iff the object is valid. |