manpagez: man pages & more
html files: polkit
Home | html | info | man

PolkitUnixGroup

PolkitUnixGroup — Unix groups

Object Hierarchy

  GObject
   +----PolkitUnixGroup

Implemented Interfaces

PolkitUnixGroup implements PolkitIdentity.

Properties

  "gid"                      gint                  : Read / Write / Construct

Description

An object representing a group identity on a UNIX system.

Details

PolkitUnixGroup

typedef struct _PolkitUnixGroup PolkitUnixGroup;

The PolkitUnixGroup struct should not be accessed directly.


polkit_unix_group_new ()

PolkitIdentity *    polkit_unix_group_new               (gint gid);

Creates a new PolkitUnixGroup object for gid.

gid :

A UNIX group id.

Returns :

A PolkitUnixGroup object. Free with g_object_unref().

polkit_unix_group_new_for_name ()

PolkitIdentity *    polkit_unix_group_new_for_name      (const gchar *name,
                                                         GError **error);

Creates a new PolkitUnixGroup object for a group with the group name name.

name :

A UNIX group name.

error :

Return location for error.

Returns :

A PolkitUnixGroup object or NULL if error is set.

polkit_unix_group_get_gid ()

gint                polkit_unix_group_get_gid           (PolkitUnixGroup *group);

Gets the UNIX group id for group.

group :

A PolkitUnixGroup.

Returns :

A UNIX group id.

polkit_unix_group_set_gid ()

void                polkit_unix_group_set_gid           (PolkitUnixGroup *group,
                                                         gint gid);

Sets gid for group.

group :

A PolkitUnixGroup.

gid :

A UNIX group id.

Property Details

The "gid" property

  "gid"                      gint                  : Read / Write / Construct

The UNIX group id.

Allowed values: >= 0

Default value: 0

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.