jellyfin/MediaBrowser.Model/Plugins/PluginStatus.cs

48 lines
1.4 KiB
C#
Raw Normal View History

2020-12-07 00:48:54 +01:00
namespace MediaBrowser.Model.Plugins
{
/// <summary>
/// Plugin load status.
/// </summary>
public enum PluginStatus
{
2020-12-15 11:05:04 +01: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 14:44:38 +01: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 11:05:04 +01:00
/// but a disk manifest status of Disabled.
/// </summary>
2020-12-17 14:44:38 +01:00
Restart = 1,
2020-12-15 11:05:04 +01:00
/// <summary>
/// This plugin is currently running.
/// </summary>
2020-12-07 00:48:54 +01:00
Active = 0,
2020-12-15 11:05:04 +01:00
/// <summary>
/// This plugin has been marked as disabled.
/// </summary>
2020-12-07 00:48:54 +01:00
Disabled = -1,
2020-12-15 11:05:04 +01:00
/// <summary>
2020-12-18 22:05:27 +01:00
/// This plugin does not meet the TargetAbi requirements.
2020-12-15 11:05:04 +01:00
/// </summary>
2020-12-07 00:48:54 +01:00
NotSupported = -2,
2020-12-15 11:05:04 +01:00
/// <summary>
2021-12-24 18:28:27 +01:00
/// This plugin caused an error when instantiated (either DI loop, or exception).
2020-12-15 11:05:04 +01:00
/// </summary>
2020-12-17 14:44:38 +01:00
Malfunctioned = -3,
2020-12-15 11:05:04 +01:00
/// <summary>
/// This plugin has been superceded by another version.
/// </summary>
2020-12-15 00:08:04 +01:00
Superceded = -4,
2020-12-15 11:05:04 +01: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 14:44:38 +01:00
Deleted = -5
2020-12-07 00:48:54 +01:00
}
}