![]() |
![]() |
![]() |
PolicyKit Library Reference Manual | ![]() |
---|---|---|---|---|
struct 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);
struct 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.
seat : | 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.
seat : | 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.
seat : | the seat object |
ck_objref : | 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.
seat : | the seat object |
out_ck_objref : | 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
seat : | the object |
polkit_bool_t polkit_seat_validate (PolKitSeat *seat);
Validate the object
seat : | the object |
Returns : | TRUE iff the object is valid. |