jellyfin/MediaBrowser.Model/Plugins/PluginStatus.cs

48 lines
1.4 KiB
C#
Raw Normal View History

2020-12-06 18:48:54 -05:00
namespace MediaBrowser.Model.Plugins
{
/// <summary>
/// Plugin load status.
/// </summary>
public enum PluginStatus
{
2020-12-15 05:05:04 -05:00
/// <summary>
/// This plugin requires a restart in order for it to load. This is a memory only status.
/// The actual status of the plugin after reload is present in the manifest.
2020-12-17 08:44:38 -05:00
/// eg. A disabled plugin will still be active until the next restart, and so will have a memory status of Restart,
2020-12-15 05:05:04 -05:00
/// but a disk manifest status of Disabled.
/// </summary>
2020-12-17 08:44:38 -05:00
Restart = 1,
2020-12-15 05:05:04 -05:00
/// <summary>
/// This plugin is currently running.
/// </summary>
2020-12-06 18:48:54 -05:00
Active = 0,
2020-12-15 05:05:04 -05:00
/// <summary>
/// This plugin has been marked as disabled.
/// </summary>
2020-12-06 18:48:54 -05:00
Disabled = -1,
2020-12-15 05:05:04 -05:00
/// <summary>
2020-12-18 16:05:27 -05:00
/// This plugin does not meet the TargetAbi requirements.
2020-12-15 05:05:04 -05:00
/// </summary>
2020-12-06 18:48:54 -05:00
NotSupported = -2,
2020-12-15 05:05:04 -05:00
/// <summary>
2021-12-24 12:28:27 -05:00
/// This plugin caused an error when instantiated (either DI loop, or exception).
2020-12-15 05:05:04 -05:00
/// </summary>
2020-12-17 08:44:38 -05:00
Malfunctioned = -3,
2020-12-15 05:05:04 -05:00
/// <summary>
/// This plugin has been superceded by another version.
/// </summary>
2020-12-14 18:08:04 -05:00
Superceded = -4,
2020-12-15 05:05:04 -05:00
/// <summary>
/// An attempt to remove this plugin from disk will happen at every restart.
/// It will not be loaded, if unable to do so.
/// </summary>
2020-12-17 08:44:38 -05:00
Deleted = -5
2020-12-06 18:48:54 -05:00
}
}