add support for block devices in restore_init_state()
[lttv.git] / ltt / branches / poly / lttv / lttv / hook.h
index b62ddcfc8bded1e28796d471a19292dc5f9f9772..197184a6d4ce9333be659c31ecb5a5408b0e0add 100644 (file)
@@ -128,6 +128,9 @@ typedef struct _LttvHooksById {
   GArray *array;
 } LttvHooksById;
 
+/* macro to calculate the hook ID of a facility/event pair. */
+#define GET_HOOK_ID(fac_id, ev_id) \
+  ( (guint)fac_id | ((guint)ev_id << FACILITIES_BITS) )
 
 /* Create and destroy a hooks by id list */
 
This page took 0.023392 seconds and 4 git commands to generate.