chiark / gitweb /
unit: reduce heap usage for unit objects
[elogind.git] / src / target.c
index 54c34daa0de6c4e9431bbcad44d90613ce282119..b774cfbc3342adc60a33a63c534f54f8b986985d 100644 (file)
@@ -199,6 +199,11 @@ DEFINE_STRING_TABLE_LOOKUP(target_state, TargetState);
 
 const UnitVTable target_vtable = {
         .suffix = ".target",
+        .object_size = sizeof(Target),
+        .sections =
+                "Unit\0"
+                "Target\0"
+                "Install\0",
 
         .load = target_load,
         .coldplug = target_coldplug,