return sd_json_buildo(
ret,
- SD_JSON_BUILD_PAIR("class", SD_JSON_BUILD_INTEGER(key->class)),
- SD_JSON_BUILD_PAIR("type", SD_JSON_BUILD_INTEGER(key->type)),
- SD_JSON_BUILD_PAIR("name", SD_JSON_BUILD_STRING(dns_resource_key_name(key))));
+ SD_JSON_BUILD_PAIR_INTEGER("class", key->class),
+ SD_JSON_BUILD_PAIR_INTEGER("type", key->type),
+ SD_JSON_BUILD_PAIR_STRING("name", dns_resource_key_name(key)));
}
int dns_resource_key_from_json(sd_json_variant *v, DnsResourceKey **ret) {
return user_record_buildo(
ret,
SD_JSON_BUILD_PAIR("userName", JSON_BUILD_CONST_STRING("root")),
- SD_JSON_BUILD_PAIR("uid", SD_JSON_BUILD_UNSIGNED(0)),
- SD_JSON_BUILD_PAIR("gid", SD_JSON_BUILD_UNSIGNED(0)),
+ SD_JSON_BUILD_PAIR_UNSIGNED("uid", 0),
+ SD_JSON_BUILD_PAIR_UNSIGNED("gid", 0),
SD_JSON_BUILD_PAIR("homeDirectory", JSON_BUILD_CONST_STRING("/root")),
SD_JSON_BUILD_PAIR("disposition", JSON_BUILD_CONST_STRING("intrinsic")));
}
return user_record_buildo(
ret,
SD_JSON_BUILD_PAIR("userName", JSON_BUILD_CONST_STRING(NOBODY_USER_NAME)),
- SD_JSON_BUILD_PAIR("uid", SD_JSON_BUILD_UNSIGNED(UID_NOBODY)),
- SD_JSON_BUILD_PAIR("gid", SD_JSON_BUILD_UNSIGNED(GID_NOBODY)),
+ SD_JSON_BUILD_PAIR_UNSIGNED("uid", UID_NOBODY),
+ SD_JSON_BUILD_PAIR_UNSIGNED("gid", GID_NOBODY),
SD_JSON_BUILD_PAIR("shell", JSON_BUILD_CONST_STRING(NOLOGIN)),
- SD_JSON_BUILD_PAIR("locked", SD_JSON_BUILD_BOOLEAN(true)),
+ SD_JSON_BUILD_PAIR_BOOLEAN("locked", true),
SD_JSON_BUILD_PAIR("disposition", JSON_BUILD_CONST_STRING("intrinsic")));
}
return group_record_buildo(
ret,
SD_JSON_BUILD_PAIR("groupName", JSON_BUILD_CONST_STRING("root")),
- SD_JSON_BUILD_PAIR("gid", SD_JSON_BUILD_UNSIGNED(0)),
+ SD_JSON_BUILD_PAIR_UNSIGNED("gid", 0),
SD_JSON_BUILD_PAIR("disposition", JSON_BUILD_CONST_STRING("intrinsic")));
}
return group_record_buildo(
ret,
SD_JSON_BUILD_PAIR("groupName", JSON_BUILD_CONST_STRING(NOBODY_GROUP_NAME)),
- SD_JSON_BUILD_PAIR("gid", SD_JSON_BUILD_UNSIGNED(GID_NOBODY)),
+ SD_JSON_BUILD_PAIR_UNSIGNED("gid", GID_NOBODY),
SD_JSON_BUILD_PAIR("disposition", JSON_BUILD_CONST_STRING("intrinsic")));
}