docs: Move the GIOScheduler SECTION

Move it to a separate page, as there isn’t a `GIOScheduler` struct.
Ensure that all its functions/methods/types are correctly marked as
deprecated. Fix a few broken links about I/O priority which pointed to
it.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall
2023-11-15 11:21:07 +00:00
parent e594321ca4
commit ef049cbaca
7 changed files with 36 additions and 18 deletions

View File

@@ -110,6 +110,9 @@ typedef struct _GIOExtension GIOExtension;
* GIOSchedulerJob:
*
* Opaque class for defining and scheduling IO jobs.
*
* Deprecated: 2.36: Use [struct@GLib.ThreadPool] or
* [method@Gio.Task.run_in_thread]
**/
typedef struct _GIOSchedulerJob GIOSchedulerJob;
typedef struct _GIOStreamAdapter GIOStreamAdapter;
@@ -357,6 +360,8 @@ typedef void (* GFileMeasureProgressCallback) (gboolean reporting,
*
* Returns: %TRUE if this function should be called again to
* complete the job, %FALSE if the job is complete (or cancelled)
* Deprecated: 2.36: Use [struct@GLib.ThreadPool] or
* [method@Gio.Task.run_in_thread]
**/
typedef gboolean (*GIOSchedulerJobFunc) (GIOSchedulerJob *job,
GCancellable *cancellable,