jellyfin/MediaBrowser.Model/Plugins/PluginStatus.cs

48 lines
1.4 KiB
C#
Raw Normal View History

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