]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add comments in varlink-io.systemd.Unit.c 38212/head
authorIvan Kruglov <mail@ikruglov.com>
Mon, 14 Jul 2025 13:51:54 +0000 (06:51 -0700)
committerIvan Kruglov <mail@ikruglov.com>
Thu, 16 Oct 2025 10:52:08 +0000 (03:52 -0700)
src/shared/varlink-io.systemd.Unit.c

index 8278469eda863431d678a457285847ecdf9f073d..ec6cf89b1ecc3dc23646b563da05783c144baa34 100644 (file)
@@ -4,6 +4,7 @@
 #include "varlink-idl-common.h"
 #include "varlink-io.systemd.Unit.h"
 
+/* CGroupContext */
 static SD_VARLINK_DEFINE_STRUCT_TYPE(
                 CGroupTasksMax,
                 SD_VARLINK_FIELD_COMMENT("The maximum amount of tasks"),
@@ -237,6 +238,7 @@ static SD_VARLINK_DEFINE_STRUCT_TYPE(
                 SD_VARLINK_FIELD_COMMENT("Reflects whether to forward coredumps for processes that crash within this cgroup"),
                 SD_VARLINK_DEFINE_FIELD(CoredumpReceive, SD_VARLINK_BOOL, 0));
 
+/* ExecContext */
 static SD_VARLINK_DEFINE_STRUCT_TYPE(
                 WorkingDirectory,
                 SD_VARLINK_FIELD_COMMENT("The path to the working directory"),
@@ -714,6 +716,7 @@ static SD_VARLINK_DEFINE_STRUCT_TYPE(
                 SD_VARLINK_FIELD_COMMENT("https://www.freedesktop.org/software/systemd/man"PROJECT_VERSION_STR"systemd.exec.html#UtmpMode="),
                 SD_VARLINK_DEFINE_FIELD(UtmpMode, SD_VARLINK_STRING, 0));
 
+/* UnitContext */
 static SD_VARLINK_DEFINE_STRUCT_TYPE(
                 Condition,
                 SD_VARLINK_FIELD_COMMENT("The condition type"),
@@ -1035,6 +1038,8 @@ SD_VARLINK_DEFINE_INTERFACE(
                 &vl_type_ActivationDetails,
                 SD_VARLINK_SYMBOL_COMMENT("An object for referencing UNIX processes"),
                 &vl_type_ProcessId,
+
+                /* CGroupContext */
                 &vl_type_CGroupTasksMax,
                 &vl_type_CGroupIODeviceWeight,
                 &vl_type_CGroupIODeviceLimit,
@@ -1049,6 +1054,8 @@ SD_VARLINK_DEFINE_INTERFACE(
                 &vl_type_CGroupContext,
                 SD_VARLINK_SYMBOL_COMMENT("CGroup runtime of a unit"),
                 &vl_type_CGroupRuntime,
+
+                /* ExecContext */
                 &vl_type_WorkingDirectory,
                 &vl_type_PartitionMountOptions,
                 &vl_type_BindPath,
@@ -1074,5 +1081,7 @@ SD_VARLINK_DEFINE_INTERFACE(
                 &vl_type_SetCredential,
                 SD_VARLINK_SYMBOL_COMMENT("Exec context of a unit"),
                 &vl_type_ExecContext,
+
+                /* Errors */
                 SD_VARLINK_SYMBOL_COMMENT("No matching unit found"),
                 &vl_error_NoSuchUnit);