loci: move IS_FLOW_MOD_SUBTYPE macro to loci_int.h
diff --git a/c_gen/templates/loci_int.h b/c_gen/templates/loci_int.h
index bd80b12..4cd48b6 100644
--- a/c_gen/templates/loci_int.h
+++ b/c_gen/templates/loci_int.h
@@ -258,7 +258,16 @@
 #define OF_PORT_NO_VALUE_CHECK(port, ver) \
     if (((ver) == OF_VERSION_1_0) && ((port) > 0xff00)) (port) += 0xffff0000
 
-
+/**
+ * Macro to detect if an object ID falls in the "flow mod" family of objects
+ * This includes add, modify, modify_strict, delete and delete_strict
+ */
+#define IS_FLOW_MOD_SUBTYPE(object_id)                 \
+    (((object_id) == OF_FLOW_MODIFY) ||                \
+     ((object_id) == OF_FLOW_MODIFY_STRICT) ||         \
+     ((object_id) == OF_FLOW_DELETE) ||                \
+     ((object_id) == OF_FLOW_DELETE_STRICT) ||         \
+     ((object_id) == OF_FLOW_ADD))
 
 #include <loci/loci.h> 
 #endif /* __LOCI_INT_H__ */