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

PolkitBackendLocalAuthorizationStore

PolkitBackendLocalAuthorizationStore — Watches a directory for authorization files

Object Hierarchy

  GObject
   +----PolkitBackendLocalAuthorizationStore

Properties

  "directory"                GFile*                : Read / Write / Construct Only
  "extension"                gchar*                : Read / Write / Construct Only

Signals

  "changed"                                        : Run Last

Description

PolkitBackendLocalAuthorizationStore is a utility class to watch and read authorization files from a directory.

Details

PolkitBackendLocalAuthorizationStore

typedef struct _PolkitBackendLocalAuthorizationStore PolkitBackendLocalAuthorizationStore;

PolkitBackendLocalAuthorizationStoreClass

typedef struct {
  GObjectClass parent_class;

  /* Signals */
  void (*changed)  (PolkitBackendLocalAuthorizationStore *store);
} PolkitBackendLocalAuthorizationStoreClass;

polkit_backend_local_authorization_store_new ()

PolkitBackendLocalAuthorizationStore * polkit_backend_local_authorization_store_new
                                                        (GFile *directory,
                                                         const gchar *extension);

Creates a new PolkitBackendLocalAuthorizationStore object that reads authorizations from directory with file extension extension. To watch for configuration changes, connect to the "changed" signal.

directory :

The directory to watch.

extension :

The extension of files to consider e.g. .pkla.

Returns :

A PolkitBackendLocalAuthorizationStore. Free with g_object_unref().

polkit_backend_local_authorization_store_lookup ()

gboolean            polkit_backend_local_authorization_store_lookup
                                                        (PolkitBackendLocalAuthorizationStore *store,
                                                         PolkitIdentity *identity,
                                                         const gchar *action_id,
                                                         PolkitDetails *details,
                                                         PolkitImplicitAuthorization *out_result_any,
                                                         PolkitImplicitAuthorization *out_result_inactive,
                                                         PolkitImplicitAuthorization *out_result_active,
                                                         PolkitDetails *out_details);

Checks if an authorization entry from store matches identity, action_id and details.

store :

A PolkitBackendLocalAuthorizationStore.

identity :

The identity to check for.

action_id :

The action id to check for.

details :

Details for action.

out_result_any :

Return location for the result for any subjects if the look up matched.

out_result_inactive :

Return location for the result for subjects in local inactive sessions if the look up matched.

out_result_active :

Return location for the result for subjects in local active sessions if the look up matched.

out_details :

NULL or a PolkitDetails object to append key/value pairs to on a positive match.

Returns :

TRUE if store has an authorization entry that matches identity, action_id and details. Otherwise FALSE.

Property Details

The "directory" property

  "directory"                GFile*                : Read / Write / Construct Only

The directory to watch for authorization files.


The "extension" property

  "extension"                gchar*                : Read / Write / Construct Only

The file extension for files to consider, e.g. .pkla.

Default value: NULL

Signal Details

The "changed" signal

void                user_function                      (PolkitBackendLocalAuthorizationStore *polkitbackendlocalauthorizationstore,
                                                        gpointer                              user_data)                                 : Run Last
© manpagez.com 2000-2017
Individual documents may contain additional copyright information.