org.freedesktop.GeoClue2.Agent

org.freedesktop.GeoClue2.Agent — The GeoClue agent interface

Methods

AuthorizeApp (IN  s desktop_id,
              IN  u req_accuracy_level,
              OUT b authorized,
              OUT u allowed_accuracy_level);

Description

This is the interface all application-authorizing agents must implement. There must be a separate agent object for every logged-in user on path "/org/freedesktop/GeoClue2/Agent/${UID}".

Method Details

The AuthorizeApp() method

AuthorizeApp (IN  s desktop_id,
              IN  u req_accuracy_level,
              OUT b authorized,
              OUT u allowed_accuracy_level);

This is the method that will be called by geoclue to get applications authorized to be given location information.

IN s desktop_id:

The desktop file id (the basename of the desktop file) of the application requesting location information.

IN u req_accuracy_level:

The level of location accuracy requested by client, as GClueAccuracyLevel.

OUT b authorized:

Return value indicating if application should be given location information or not.

OUT u allowed_accuracy_level:

The level of location accuracy allowed for client, as GClueAccuracyLevel.