It's generally hard to get this right so don't attempt to do so.
<SECTION>
<FILE>gdbusutils</FILE>
-g_dbus_is_activated
g_dbus_generate_guid
g_dbus_is_guid
g_dbus_is_name
/* ---------------------------------------------------------------------------------------------------- */
-/**
- * g_dbus_is_activated:
- *
- * Determine if the process has been activated by a message bus.
- *
- * Returns: %TRUE if this process has been started by a message bus, %FALSE otherwise.
- *
- * Since: 2.26
- */
-gboolean
-g_dbus_is_activated (void)
-{
- /* TODO: technically this will make child processes forked by us
- * return TRUE too..
- */
- return g_getenv ("DBUS_STARTER_BUS_TYPE") != NULL;
-}
-
-/* ---------------------------------------------------------------------------------------------------- */
-
#define __G_DBUS_UTILS_C__
#include "gioaliasdef.c"
gboolean g_dbus_is_member_name (const gchar *string);
gboolean g_dbus_is_interface_name (const gchar *string);
-gboolean g_dbus_is_activated (void);
-
G_END_DECLS
#endif /* __G_DBUS_UTILS_H__ */
#if IN_HEADER(__G_DBUS_UTILS_H__)
#if IN_FILE(__G_DBUS_UTILS_C__)
g_dbus_generate_guid
-g_dbus_is_activated
g_dbus_is_guid
g_dbus_is_interface_name
g_dbus_is_member_name