OobsSelfConfig

OobsSelfConfig — Object that represents the current user

Synopsis

struct              OobsSelfConfig;
struct              OobsSelfConfigClass;
OobsObject *        oobs_self_config_get                (void);
OobsUser *          oobs_self_config_get_user           (OobsSelfConfig *config);
gboolean            oobs_self_config_is_user_self       (OobsSelfConfig *config,
                                                         OobsUser *user);

Object Hierarchy

  GObject
   +----OobsObject
         +----OobsSelfConfig

Description

Details

struct OobsSelfConfig

struct OobsSelfConfig;


struct OobsSelfConfigClass

struct OobsSelfConfigClass {
  OobsObjectClass parent_class;

  void (*_oobs_padding1) (void);
  void (*_oobs_padding2) (void);
  void (*_oobs_padding3) (void);
  void (*_oobs_padding4) (void);
};


oobs_self_config_get ()

OobsObject *        oobs_self_config_get                (void);

Returns the OobsSelfConfig singleton, which represents the user configuration for the requester uid.

Returns :

the singleton OobsSelfConfig object.

oobs_self_config_get_user ()

OobsUser *          oobs_self_config_get_user           (OobsSelfConfig *config);

Returns the OobsUser that represents the requester user.

config :

An OobsSelfConfig.

Returns :

An OobsUser, you must not reference this object.

oobs_self_config_is_user_self ()

gboolean            oobs_self_config_is_user_self       (OobsSelfConfig *config,
                                                         OobsUser *user);

Check whether user is the user represented by OobsSelfConfig.

config :

An OobsSelfConfig.

user :

An OobsUser.

Returns :

TRUE if user is self, FALSE otherwise.