forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WinGui: Building out the Web API needed for the background worker pro…
…cess. Includes initial support for encoding, logging and basic utility commands.
- Loading branch information
Showing
11 changed files
with
515 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
// <copyright file="ILogHandler.cs" company="HandBrake Project (http://handbrake.fr)"> | ||
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. | ||
// </copyright> | ||
// <summary> | ||
// Defines the ILogHandler type. | ||
// </summary> | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
|
||
namespace HandBrake.Worker.Logging.Interfaces | ||
{ | ||
using HandBrake.Worker.Logging.Models; | ||
|
||
public interface ILogHandler | ||
{ | ||
/// <summary> | ||
/// Enable logging for this worker process. | ||
/// </summary> | ||
/// <param name="config"> | ||
/// Configuration for the logger. | ||
/// </param> | ||
/// <remarks> | ||
/// If this is not called, all log messages from libhb will be ignored. | ||
/// </remarks> | ||
void ConfigureLogging(LogHandlerConfig config); | ||
|
||
string GetFullLog(); | ||
|
||
long GetLatestLogIndex(); | ||
|
||
/// <summary> | ||
/// Get the log data from a given index | ||
/// </summary> | ||
/// <param name="index">index is zero based</param> | ||
/// <returns>Full log as a string</returns> | ||
string GetLogFromIndex(int index); | ||
|
||
/// <summary> | ||
/// Empty the log cache and reset the log handler to defaults. | ||
/// </summary> | ||
void Reset(); | ||
} | ||
} |
Oops, something went wrong.