aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-profile-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-profile-event.c')
-rw-r--r--e-util/e-profile-event.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/e-util/e-profile-event.c b/e-util/e-profile-event.c
index a4d2bbe94c..5b4495a31d 100644
--- a/e-util/e-profile-event.c
+++ b/e-util/e-profile-event.c
@@ -121,16 +121,24 @@ e_profile_event_target_new(EProfileEvent *eme, const char *id, const char *uid,
return t;
}
+#ifdef ENABLE_PROFILING
void
e_profile_event_emit(const char *id, const char *uid, guint32 flags)
{
-#ifdef ENABLE_PROFILING
EProfileEvent *epe = e_profile_event_peek();
EProfileEventTarget *t = e_profile_event_target_new(epe, id, uid, flags);
e_event_emit((EEvent *)epe, "event", (EEventTarget *)t);
-#endif
}
+#else
+#undef e_profile_event_emit
+void e_profile_event_emit(const char *id, const char *uid, guint32 flags);
+
+void
+e_profile_event_emit(const char *id, const char *uid, guint32 flags)
+{
+}
+#endif
/* ********************************************************************** */