mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
unit: get rid of UnitVTable.suffix, which is now unused
This commit is contained in:
parent
5f73969991
commit
bcbe497e5a
@ -846,7 +846,6 @@ static const char* const automount_result_table[_AUTOMOUNT_RESULT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(automount_result, AutomountResult);
|
||||
|
||||
const UnitVTable automount_vtable = {
|
||||
.suffix = ".automount",
|
||||
.object_size = sizeof(Automount),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -587,7 +587,6 @@ static const char* const device_state_table[_DEVICE_STATE_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(device_state, DeviceState);
|
||||
|
||||
const UnitVTable device_vtable = {
|
||||
.suffix = ".device",
|
||||
.object_size = sizeof(Device),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -1785,7 +1785,6 @@ static const char* const mount_result_table[_MOUNT_RESULT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(mount_result, MountResult);
|
||||
|
||||
const UnitVTable mount_vtable = {
|
||||
.suffix = ".mount",
|
||||
.object_size = sizeof(Mount),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -738,7 +738,6 @@ static const char* const path_result_table[_PATH_RESULT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(path_result, PathResult);
|
||||
|
||||
const UnitVTable path_vtable = {
|
||||
.suffix = ".path",
|
||||
.object_size = sizeof(Path),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -3798,7 +3798,6 @@ static const char* const start_limit_action_table[_SERVICE_START_LIMIT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(start_limit_action, StartLimitAction);
|
||||
|
||||
const UnitVTable service_vtable = {
|
||||
.suffix = ".service",
|
||||
.object_size = sizeof(Service),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -281,7 +281,6 @@ static const char* const snapshot_state_table[_SNAPSHOT_STATE_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(snapshot_state, SnapshotState);
|
||||
|
||||
const UnitVTable snapshot_vtable = {
|
||||
.suffix = ".snapshot",
|
||||
.object_size = sizeof(Snapshot),
|
||||
|
||||
.no_alias = true,
|
||||
|
@ -2185,7 +2185,6 @@ static const char* const socket_result_table[_SOCKET_RESULT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(socket_result, SocketResult);
|
||||
|
||||
const UnitVTable socket_vtable = {
|
||||
.suffix = ".socket",
|
||||
.object_size = sizeof(Socket),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -1335,7 +1335,6 @@ static const char* const swap_result_table[_SWAP_RESULT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(swap_result, SwapResult);
|
||||
|
||||
const UnitVTable swap_vtable = {
|
||||
.suffix = ".swap",
|
||||
.object_size = sizeof(Swap),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -198,7 +198,6 @@ static const char* const target_state_table[_TARGET_STATE_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(target_state, TargetState);
|
||||
|
||||
const UnitVTable target_vtable = {
|
||||
.suffix = ".target",
|
||||
.object_size = sizeof(Target),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -486,7 +486,6 @@ static const char* const timer_result_table[_TIMER_RESULT_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(timer_result, TimerResult);
|
||||
|
||||
const UnitVTable timer_vtable = {
|
||||
.suffix = ".timer",
|
||||
.object_size = sizeof(Timer),
|
||||
.sections =
|
||||
"Unit\0"
|
||||
|
@ -274,8 +274,6 @@ struct UnitStatusMessageFormats {
|
||||
#include "path.h"
|
||||
|
||||
struct UnitVTable {
|
||||
const char *suffix;
|
||||
|
||||
/* How much memory does an object of this unit type need */
|
||||
size_t object_size;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user