Initial release

This commit is contained in:
aculix committed 2026-09-28 18:28:32 +05:30
commit 4b67728cce
108 files changed
+13310

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/* Decides which WebKit load-progress values the agent forwards as PROGRESS. */
#ifndef KNOTCHY_PROGRESS_GATE_H
#define KNOTCHY_PROGRESS_GATE_H
#include <stdbool.h>
typedef struct {
bool has_navigated; /* false while the about:blank bootstrap loads */
bool saw_below_100;
int last_sent;
} ProgressGate;
void progress_gate_init (ProgressGate * g);
/* On every new top-level load, the error page included. */
void progress_gate_navigated (ProgressGate * g);
/* Returns the percent to send, or -1 to drop the value. */
int progress_gate_feed (ProgressGate * g, double value);
#endif