PolkitUnixProcess

PolkitUnixProcess — Unix processs

Synopsis

                    PolkitSmackProcess;
char *              polkit_smack_process_get_label      (PolkitSmackProcess *process);
void                polkit_smack_process_set_label      (PolkitSmackProcess *process,
                                                         const gchar *label);

Object Hierarchy

  GObject
   +----PolkitUnixProcess
         +----PolkitSmackProcess

Implemented Interfaces

PolkitSmackProcess implements PolkitSubject.

Properties

  "label"                    gchar*                : Read / Write / Construct

Description

An object for representing a UNIX process.

To uniquely identify processes, both the process id and the start time of the process (a monotonic increasing value representing the time since the kernel was started) is used.

Details

PolkitSmackProcess

typedef struct _PolkitSmackProcess PolkitSmackProcess;

polkit_smack_process_get_label ()

char *              polkit_smack_process_get_label      (PolkitSmackProcess *process);

Gets the label for process.

process :

A PolkitSmackProcess.

Returns :

The label for process or NULL if unknown. The returned string is the caller's responsibility to free.

polkit_smack_process_set_label ()

void                polkit_smack_process_set_label      (PolkitSmackProcess *process,
                                                         const gchar *label);

Sets the label for process

process :

A PolkitSmackProcess

label :

The label to set for the process or NULL to unset it.

Property Details

The "label" property

  "label"                    gchar*                : Read / Write / Construct

The label of the process

Default value: NULL