util

util

Functions

Description

Functions

phosh_async_error_warn()

#define             phosh_async_error_warn(err, ...)

Prints a warning when err is 'real' error. If it merely represents a canceled operation it just logs a debug message. This is useful to avoid this common pattern in async callbacks.

Parameters

err

The error to check and print.

[nullable]

...

Format string followed by parameters to insert into the format string (as with printf())

 

Returns

TRUE if err is cancellation.


phosh_dbus_service_error_warn()

#define             phosh_dbus_service_error_warn(err, ...)

Prints a warning when err is 'real' error. If it merely indicates that the DBus service is not present at all it just logs a debug message.

Parameters

err

The error to check and print.

[nullable]

...

Format string followed by parameters to insert into the format string (as with printf())

 

Returns

TRUE if err is cancellation.


phosh_cp_widget_destroy ()

void
phosh_cp_widget_destroy (void *widget);

phosh_fix_app_id ()

char *
phosh_fix_app_id (const char *app_id);

phosh_munge_app_id ()

gchar *
phosh_munge_app_id (const gchar *app_id);

Munges an app_id according to the rules used by gnome-shell, feedbackd and phoc:

Parameters

app_id

the app_id

 

Returns

The munged_app id


phosh_find_systemd_session ()

gboolean
phosh_find_systemd_session (char **session_id);

phosh_error_warnv ()

gboolean
phosh_error_warnv (const char *log_domain,
                   GError *err,
                   GQuark domain,
                   int code,
                   const gchar *fmt,
                   ...);