Internal API Reference - Entity Management
Desktop Apps Training - Policy Kit

Entity management

Entity management — Entity management

 

Synopsis



struct passwd* kit_getpwnam (const char *username);
struct passwd* kit_getpwuid (uid_t uid);

Description

Functions used for entity management.

 

Details

kit_getpwnam ()

struct passwd*      kit_getpwnam                        (const char *username);

Like getpwnam(3) from the standard C library but tweaked for unit testing. TODO: explain how.

 

username :

user name to look up

Returns :

See getpwnam(3)

kit_getpwuid ()

struct passwd*      kit_getpwuid                        (uid_t uid);

Like getpwuid(3) from the standard C library but tweaked for unit testing. TODO: explain how.

 

uid :

uid to look up

Returns :

See getpwuid(3)